[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - sc/source

Andras Timar andras.timar at collabora.com
Wed Sep 21 07:13:28 UTC 2016


 sc/source/ui/view/gridwin4.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c066607fdef76f6a33d29182a465e7cf215c731f
Author: Andras Timar <andras.timar at collabora.com>
Date:   Wed Sep 21 09:12:21 2016 +0200

    Linux x86 build fix
    
    Change-Id: I1464c429dd41feaeab97f2792eed40a9dfbadde3

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 7ce585c..03a124d 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1087,8 +1087,8 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
 
     nTopLeftTileCol = std::min(nTopLeftTileCol, (sal_Int32)nEndCol);
     nTopLeftTileRow = std::min(nTopLeftTileRow, (sal_Int32)nEndRow);
-    nTopLeftTileCol = std::max(nTopLeftTileCol, 0);
-    nTopLeftTileRow = std::max(nTopLeftTileRow, 0);
+    nTopLeftTileCol = std::max(nTopLeftTileCol, sal_Int32(0));
+    nTopLeftTileRow = std::max(nTopLeftTileRow, sal_Int32(0));
     nBottomRightTileCol = std::min(nBottomRightTileCol, (sal_Int32)nEndCol);
     nBottomRightTileRow = std::min(nBottomRightTileRow, (sal_Int32)nEndRow);
     nTopLeftTileColOrigin = nTopLeftTileColOrigin * TWIPS_PER_PIXEL;


More information about the Libreoffice-commits mailing list