summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/svdraw/sdrpagewindow.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx
index 6e3cde95fff2..0fd7532b745d 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);