summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/source/bitmapdevice.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index 415c0d606d7b..0c8db660d15d 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -740,8 +740,8 @@ namespace
{
sal_Int32 nSrcX = rSrcRect.getMinX();
sal_Int32 nSrcY = rSrcRect.getMinY();
- sal_Int32 nSrcWidth = rSrcRect.getMaxX() - nSrcX + 1;
- sal_Int32 nSrcHeight = rSrcRect.getMaxY() - nSrcY + 1;
+ sal_Int32 nSrcWidth = rSrcRect.getWidth();
+ sal_Int32 nSrcHeight = rSrcRect.getHeight();
sal_Int32 nDestX = rDstRect.getMinX();
sal_Int32 nDestY = rDstRect.getMinY();