diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-27 17:52:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-27 17:52:42 +0200 |
commit | e139ad433b74973138e84c36ee2cfd5937eebef8 (patch) | |
tree | 921eb59c17b2078e81b124a81a4cf0ce0f1a44fe /basebmp/source/bitmapdevice.cxx | |
parent | 93d22efb334ad85fd02deb83ec1baf538cf0cba3 (diff) |
Off-by-one error
Change-Id: I84749158fb8dee3fec10869e0955177bbd917d59
Diffstat (limited to 'basebmp/source/bitmapdevice.cxx')
-rw-r--r-- | basebmp/source/bitmapdevice.cxx | 4 |
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(); |