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

New commits:
commit 6e6e03c9b7d591802c485acc5eb979c0e3ba5610
Author: Jan Holesovsky <ke...@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;
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to