summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/gridwin4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/gridwin4.cxx')
-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 cc6c733694a9..ea1bc5cd84c6 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1077,8 +1077,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<sal_Int32>(nTopLeftTileCol, 0);
+ nTopLeftTileRow = std::max<sal_Int32>(nTopLeftTileRow, 0);
nBottomRightTileCol = std::min(nBottomRightTileCol, (sal_Int32)nEndCol);
nBottomRightTileRow = std::min(nBottomRightTileRow, (sal_Int32)nEndRow);
nTopLeftTileColOrigin = nTopLeftTileColOrigin * TWIPS_PER_PIXEL;