[Libreoffice-commits] core.git: svx/source
Stephan Bergmann
sbergman at redhat.com
Fri Aug 22 05:21:37 PDT 2014
svx/source/svdraw/sdrpagewindow.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 0073c78eaf3053140cb4481f1d1fa13df445b883
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Aug 22 14:21:05 2014 +0200
Rectangle coordinates are long, not sal_Int32
Change-Id: I2f4bd53bbf94ea439e774ea85e61adcdb920c497
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx
index 6e3cde9..0fd7532 100644
--- a/svx/source/svdraw/sdrpagewindow.cxx
+++ b/svx/source/svdraw/sdrpagewindow.cxx
@@ -387,8 +387,10 @@ void SdrPageWindow::InvalidatePageWindow(const basegfx::B2DRange& rRange)
}
const Rectangle aVCLDiscreteRectangle(
- (sal_Int32)floor(aDiscreteRange.getMinX()), (sal_Int32)floor(aDiscreteRange.getMinY()),
- (sal_Int32)ceil(aDiscreteRange.getMaxX()), (sal_Int32)ceil(aDiscreteRange.getMaxY()));
+ static_cast<long>(floor(aDiscreteRange.getMinX())),
+ static_cast<long>(floor(aDiscreteRange.getMinY())),
+ static_cast<long>(ceil(aDiscreteRange.getMaxX())),
+ static_cast<long>(ceil(aDiscreteRange.getMaxY())));
const bool bWasMapModeEnabled(rWindow.IsMapModeEnabled());
rWindow.EnableMapMode(false);
More information about the Libreoffice-commits
mailing list