svx/source/svdraw/sdrpagewindow.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 0073c78eaf3053140cb4481f1d1fa13df445b883
Author: Stephan Bergmann <sberg...@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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to