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

Thorsten Behrens (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 23 13:42:18 UTC 2019


 vcl/source/outdev/rect.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit c2b364d3bbe86ad9ee84c989600758641cc193ee
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Mon Dec 23 12:31:19 2019 +0100
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Mon Dec 23 14:41:26 2019 +0100

    Revert "Drawing calc grid misses pixels on bottom and right; fix."
    
    This reverts commit 24e7208306fa1c60eb0a0cee5c49b6454cad9df3.
    
    Code is used for Draw/Impress, too.
    
    Change-Id: I799162d0e7040a27cddfbca94e191fa2d037ee9b
    Reviewed-on: https://gerrit.libreoffice.org/85751
    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 4cced0f9b7e9..ecbeb12fbfee 100644
--- a/vcl/source/outdev/rect.cxx
+++ b/vcl/source/outdev/rect.cxx
@@ -232,11 +232,6 @@ void OutputDevice::DrawGrid( const tools::Rectangle& rRect, const Size& rDist, D
     if( mbOutputClipped )
         return;
 
-    // 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);
-
     const long nDistX = std::max( rDist.Width(), 1L );
     const long nDistY = std::max( rDist.Height(), 1L );
     long nX = ( rRect.Left() >= aDstRect.Left() ) ? rRect.Left() : ( rRect.Left() + ( ( aDstRect.Left() - rRect.Left() ) / nDistX ) * nDistX );


More information about the Libreoffice-commits mailing list