[PATCH] fdo#32181: don't exceed margins on pdfexport

Ivan Timofeev timofeev.i.s at gmail.com
Fri Jun 15 05:02:25 PDT 2012


(regression from 6425c2884d6013a41adbd76728e15832af7a3220)

Change-Id: Ia54b82e3b781704c84b1e648e980960042cd69ba
---
 sw/source/core/text/itrpaint.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/sw/source/core/text/itrpaint.cxx b/sw/source/core/text/itrpaint.cxx
index dabb7b5..6357429 100644
--- a/sw/source/core/text/itrpaint.cxx
+++ b/sw/source/core/text/itrpaint.cxx
@@ -419,13 +419,7 @@ void SwTxtPainter::DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
         if( pPor->IsArrowPortion() && GetInfo().OnWin() && !pArrow )
             pArrow = (SwArrowPortion*)pPor;
 
-        pPor = bDrawInWindow || GetInfo().X() <= nMaxRight ||
-               // #i16816# tagged pdf support
-               ( GetInfo().GetVsh() &&
-                 GetInfo().GetVsh()->GetViewOptions()->IsPDFExport() &&
-                 pNext && pNext->IsHolePortion() ) ?
-               pNext :
-               0;
+        pPor = bDrawInWindow || GetInfo().X() <= nMaxRight ? pNext : 0;
     }
 
     // delete underline font
-- 
1.7.10


--------------020000080509090001020602--


More information about the LibreOffice mailing list