summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-09-19 20:24:00 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-11-01 16:58:53 +0000
commit3cdfe6728b9ec931c95cb9d7b5bc16ccbd53153e (patch)
tree087f9f77fa60d8239081466ad8168ebfc8aa0f9a
parent60692ba238c6c5c003722ccaa52702e9ef3ade13 (diff)
Drawing calc grid misses pixels on bottom and right.
Change-Id: I2ac7911b35d942b7167a3243d04e1b5710ed367d
-rw-r--r--vcl/source/outdev/rect.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/outdev/rect.cxx b/vcl/source/outdev/rect.cxx
index ecbeb12fbfee..2bdc7abb793b 100644
--- a/vcl/source/outdev/rect.cxx
+++ b/vcl/source/outdev/rect.cxx
@@ -219,6 +219,10 @@ void OutputDevice::DrawGrid( const tools::Rectangle& rRect, const Size& rDist, D
tools::Rectangle aDstRect( PixelToLogic( Point() ), GetOutputSize() );
aDstRect.Intersection( rRect );
+ // FIXME: seems we have an off-by-one around the border
+ // here with the cairo / svp backend at least.
+ aDstRect.AdjustRight(1);
+ aDstRect.AdjustBottom(1);
if( aDstRect.IsEmpty() || ImplIsRecordLayout() )
return;