summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/view/SlsFramePainter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/view/SlsFramePainter.cxx')
-rw-r--r--sd/source/ui/slidesorter/view/SlsFramePainter.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/view/SlsFramePainter.cxx b/sd/source/ui/slidesorter/view/SlsFramePainter.cxx
index 07027c1d1e18..6ad0831b7e49 100644
--- a/sd/source/ui/slidesorter/view/SlsFramePainter.cxx
+++ b/sd/source/ui/slidesorter/view/SlsFramePainter.cxx
@@ -182,7 +182,7 @@ void FramePainter::OffsetBitmap::PaintSide (
{
rDevice.DrawBitmapEx(
Point(nX,nY),
- Size(std::min(aBitmapSize.Width(),static_cast<long>(nRight-nX+1)),aBitmapSize.Height()),
+ Size(std::min(aBitmapSize.Width(),nRight-nX+1),aBitmapSize.Height()),
maBitmap);
}
}
@@ -202,7 +202,7 @@ void FramePainter::OffsetBitmap::PaintSide (
{
rDevice.DrawBitmapEx(
Point(nX,nY),
- Size(aBitmapSize.Width(), std::min(aBitmapSize.Height(), static_cast<long>(nBottom-nY+1))),
+ Size(aBitmapSize.Width(), std::min(aBitmapSize.Height(), nBottom-nY+1)),
maBitmap);
}
}
@@ -223,8 +223,8 @@ void FramePainter::OffsetBitmap::PaintCenter (
rDevice.DrawBitmapEx(
Point(nX,nY),
Size(
- ::std::min(aBitmapSize.Width(), rBox.Right()-nX+1),
- std::min(aBitmapSize.Height(), rBox.Bottom()-nY+1)),
+ ::std::min<sal_Int32>(aBitmapSize.Width(), rBox.Right()-nX+1),
+ std::min<sal_Int32>(aBitmapSize.Height(), rBox.Bottom()-nY+1)),
maBitmap);
}