summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2016-09-21 09:12:21 +0200
committerAndras Timar <andras.timar@collabora.com>2016-09-21 09:12:21 +0200
commitc066607fdef76f6a33d29182a465e7cf215c731f (patch)
treefa0d37150d38642dfd870de14d9bd436764fc10a
parentab2da32b380e068bb131bca6f28c62c0bb9c9fdb (diff)
Linux x86 build fixcp-5.1-7
Change-Id: I1464c429dd41feaeab97f2792eed40a9dfbadde3
-rw-r--r--sc/source/ui/view/gridwin4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 7ce585c43d13..03a124d06bfc 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;