[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - vcl/source

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 6 13:29:43 UTC 2019


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

New commits:
commit 81f8d21ea3ad226e68dcdeac62d3182cd4141ddd
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: Wed Nov 6 14:28:44 2019 +0100

    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 at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

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;


More information about the Libreoffice-commits mailing list