basebmp/source/bitmapdevice.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e139ad433b74973138e84c36ee2cfd5937eebef8
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Sep 27 17:52:14 2013 +0200

    Off-by-one error
    
    Change-Id: I84749158fb8dee3fec10869e0955177bbd917d59

diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index 415c0d6..0c8db66 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();
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to