diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-05-28 12:57:44 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-05-28 13:03:41 +0200 |
commit | 6e6e03c9b7d591802c485acc5eb979c0e3ba5610 (patch) | |
tree | 99113a8fb95dad86afd760ec25da4842e732d151 | |
parent | 9832a2482f157d34f7323327dc20eaf5e11da3fd (diff) |
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
-rw-r--r-- | vcl/generic/print/common_gfx.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/generic/print/common_gfx.cxx b/vcl/generic/print/common_gfx.cxx index 7ff3a11a4d38..aa6e7c1c513e 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; } } |