From e139ad433b74973138e84c36ee2cfd5937eebef8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Sep 2013 17:52:14 +0200 Subject: Off-by-one error Change-Id: I84749158fb8dee3fec10869e0955177bbd917d59 --- basebmp/source/bitmapdevice.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basebmp') 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(); -- cgit