vcl/source/outdev/rect.cxx | 4 ++++ 1 file changed, 4 insertions(+) New commits: commit 4a3dab5a4cd5c7a7039b2cef9d5bb14c1fff49c9 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Thu Sep 19 20:24:00 2019 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Nov 5 23:24:09 2019 +0100
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.me...@collabora.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits