summaryrefslogtreecommitdiff
path: root/vcl
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-05 23:24:09 +0100
commit4a3dab5a4cd5c7a7039b2cef9d5bb14c1fff49c9 (patch)
tree8aa6e484428e96aa9606d1cb4d937f97254d09ea /vcl
parent917fd665d08c7934c79ca35dc0c7d79129328fc4 (diff)
Drawing calc grid misses pixels on bottom and right.
Change-Id: I2ac7911b35d942b7167a3243d04e1b5710ed367d Reviewed-on: https://gerrit.libreoffice.org/82091 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-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;