diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-22 14:21:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-22 14:21:05 +0200 |
commit | 0073c78eaf3053140cb4481f1d1fa13df445b883 (patch) | |
tree | 4ad2c2a039404369cecfd40a118af5a0617e7d8a | |
parent | 7c02c7b0216f642074b690cce889f1a02a2ef6b0 (diff) |
Rectangle coordinates are long, not sal_Int32
Change-Id: I2f4bd53bbf94ea439e774ea85e61adcdb920c497
-rw-r--r-- | svx/source/svdraw/sdrpagewindow.cxx | 6 |
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); |