summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 617cf393f390..d2140b64b0de 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 );