[Libreoffice-commits] .: Branch 'libreoffice-4-0' - svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Dec 18 02:23:12 PST 2012


 svx/source/svdraw/svdobj.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit edc212a5393c17ef68f97c7d6e2a215d3718579c
Author: Noel Power <noel.power at suse.com>
Date:   Mon Dec 17 17:49:00 2012 +0000

    fix problematic calc object selection after object create  (at non 100% zoom)
    
    sometimes difficult to select custom shapes etc. created at non 100% zoom
    levels. workaround was to use selection tool to select an area.
    
    Change-Id: I112a60ebf37a37b16f6af5e70358853088e648a8

diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 31fef51..fefe00d 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -943,6 +943,7 @@ void SdrObject::RecalcBoundRect()
                 aOutRect = Rectangle(
                         (sal_Int32)floor(aRange.getMinX()), (sal_Int32)floor(aRange.getMinY()),
                         (sal_Int32)ceil(aRange.getMaxX()), (sal_Int32)ceil(aRange.getMaxY()));
+                aOutRect -= GetGridOffset(); // don't include grid offset
                 return;
             }
         }


More information about the Libreoffice-commits mailing list