[Libreoffice-commits] core.git: vcl/source

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 5 22:25:22 UTC 2019


 vcl/source/outdev/rect.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 4a3dab5a4cd5c7a7039b2cef9d5bb14c1fff49c9
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Sep 19 20:24:00 2019 +0100
Commit:     Michael Meeks <michael.meeks at 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.meeks at 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;


More information about the Libreoffice-commits mailing list