vcl/source/outdev/rect.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit c2b364d3bbe86ad9ee84c989600758641cc193ee
Author: Thorsten Behrens <[email protected]>
AuthorDate: Mon Dec 23 12:31:19 2019 +0100
Commit: Michael Meeks <[email protected]>
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 <[email protected]>
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 );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits