diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-09-19 20:24:00 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-11-06 14:28:44 +0100 |
commit | 81f8d21ea3ad226e68dcdeac62d3182cd4141ddd (patch) | |
tree | 958068a44f1123df80d62ad21fa6422c8563fdc6 /vcl | |
parent | 227dac69d08222d2ec1b7971795afbb8296b105f (diff) |
Drawing calc grid misses pixels on bottom and right.
Change-Id: I2ac7911b35d942b7167a3243d04e1b5710ed367d
Reviewed-on: https://gerrit.libreoffice.org/82097
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/rect.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/outdev/rect.cxx b/vcl/source/outdev/rect.cxx index 0770b68db5b6..63a876eb2bdb 100644 --- a/vcl/source/outdev/rect.cxx +++ b/vcl/source/outdev/rect.cxx @@ -224,6 +224,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; |