[Libreoffice-commits] core.git: vcl/generic

Jan Holesovsky kendy at collabora.com
Fri May 30 02:25:25 PDT 2014


 vcl/generic/print/common_gfx.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e705c37c44e8ce43047c70e5ad9ae65bd79ae962
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Wed May 28 12:57:44 2014 +0200

    fdo#62719: Set more relaxed clipping region.
    
    It actually is so that the line is in the output PostScript; and it is even
    visible sometimes when you zoom the file (like, when you are zooming
    continuously, the line is appearing and disappearing).
    
    I guess it is a corner case of the clipping, highly dependent on the exact
    settings, so let's be more relaxed and clip a bit less (as we already do for
    right/bottom).
    
    Hopefully some other functionality does not depend on this exact clip
    setting ;-)
    
    Change-Id: I7080ad3ff730408296f9e9dec7a0b74ac4afca7d

diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx
index 7ff3a11..aa6e7c1 100644
--- a/vcl/generic/print/common_gfx.cxx
+++ b/vcl/generic/print/common_gfx.cxx
@@ -295,10 +295,10 @@ PrinterGfx::EndSetClipRegion()
         if( ! JoinVerticalClipRectangles( it, aOldPoint, nColumn ) )
         {
             // failed, so it is a single rectangle
-            PSBinMoveTo (it->TopLeft(),                          aOldPoint, nColumn );
-            PSBinLineTo (Point( it->Left(), it->Bottom()+1 ),    aOldPoint, nColumn );
+            PSBinMoveTo (Point( it->Left()-1, it->Top()-1),      aOldPoint, nColumn );
+            PSBinLineTo (Point( it->Left()-1, it->Bottom()+1 ),  aOldPoint, nColumn );
             PSBinLineTo (Point( it->Right()+1, it->Bottom()+1 ), aOldPoint, nColumn );
-            PSBinLineTo (Point( it->Right()+1, it->Top() ),      aOldPoint, nColumn );
+            PSBinLineTo (Point( it->Right()+1, it->Top()-1 ),    aOldPoint, nColumn );
             ++it;
         }
     }


More information about the Libreoffice-commits mailing list