summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-12-13 16:35:06 +0000
committerMiklos Vajna <vmiklos@suse.cz>2012-12-14 08:25:52 +0000
commitdf15a240c409ddfd71bb969f2427c7ad846321e6 (patch)
tree2d8d07640af853e6b1a266c9d4507f1603e73c0e /sw
parent8454a88e1818fa498c6860a2db434ad51591257c (diff)
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/1328 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/portxt.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx
index 3932f3754b0f..5b1f9f4a65aa 100644
--- a/sw/source/core/text/portxt.cxx
+++ b/sw/source/core/text/portxt.cxx
@@ -32,6 +32,7 @@
#include <com/sun/star/i18n/ScriptType.hdl>
#include <hintids.hxx> // CH_TXTATR
+#include <EnhancedPDFExportHelper.hxx>
#include <SwPortionHandler.hxx>
#include <porlay.hxx>
#include <inftxt.hxx>
@@ -727,7 +728,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 XubString aTxt( ' ' );
rInf.DrawText( aTxt, *this, 0, 1, false );