From fbb6995155ad98e339a33366db69be78df3f2ee8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 13 Dec 2012 16:35:06 +0000 Subject: 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/1329 Reviewed-by: Miklos Vajna Tested-by: Miklos Vajna --- sw/source/core/text/portxt.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sw/source/core/text/portxt.cxx b/sw/source/core/text/portxt.cxx index bb70404bb5cc..fd3320a14ac4 100644 --- a/sw/source/core/text/portxt.cxx +++ b/sw/source/core/text/portxt.cxx @@ -32,6 +32,7 @@ #include #include // CH_TXTATR +#include #include #include #include @@ -734,7 +735,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 ); -- cgit