[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Dec 14 00:22:06 PST 2012
sw/source/core/text/portxt.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 944e304f0541030f9efdec3f5474a99a93f4c28f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 13 16:35:06 2012 +0000
Resolves: fdo#32181 #i68503# don't emit pesky space unless in tagged pdf mode
which means that they are not there to be underlined
Change-Id: Ic02372c5284384e18198ebea44c36e83ccb6bf2a
(cherry picked from commit d3a9e97164c0071d8b18f8dcf4197ec7c5c5c2f9)
Reviewed-on: https://gerrit.libreoffice.org/1327
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Tested-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index 6cd4af3..7842c11 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -22,6 +22,7 @@
#include <com/sun/star/i18n/ScriptType.hpp>
#include <i18npool/mslangid.hxx>
#include <hintids.hxx> // CH_TXTATR
+#include <EnhancedPDFExportHelper.hxx>
#include <SwPortionHandler.hxx>
#include <porlay.hxx>
#include <inftxt.hxx>
@@ -717,7 +718,8 @@ SwLinePortion *SwHolePortion::Compress() { return this; }
void SwHolePortion::Paint( const SwTxtPaintInfo &rInf ) const
{
// #i16816# tagged pdf support
- if( rInf.GetVsh() && rInf.GetVsh()->GetViewOptions()->IsPDFExport() )
+ if( rInf.GetVsh() && rInf.GetVsh()->GetViewOptions()->IsPDFExport() &&
+ SwTaggedPDFHelper::IsExportTaggedPDF( *rInf.GetOut()) )
{
const OUString aTxt( ' ' );
rInf.DrawText( aTxt, *this, 0, 1, false );
More information about the Libreoffice-commits
mailing list