[Libreoffice-commits] core.git: svx/source

merttumer (via logerrit) logerrit at kemper.freedesktop.org
Tue Apr 20 02:32:32 UTC 2021


 svx/source/sdr/contact/viewobjectcontact.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit da7dcf0037b374a8cecdbd2af27748d94a316a79
Author:     merttumer <mert.tumer at collabora.com>
AuthorDate: Wed Mar 17 09:01:45 2021 +0300
Commit:     Mert Tumer <mert.tumer at collabora.com>
CommitDate: Tue Apr 20 04:31:49 2021 +0200

    LOK: Fix wrong gridOffset when shape is moved on calc
    
    Change-Id: I37501128068943cee8f67a5d91a35ec1a76fe550
    Signed-off-by: merttumer <mert.tumer at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112599
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114024
    Tested-by: Jenkins

diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index 7e214b76199e..6387c39afcbf 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -224,8 +224,11 @@ void ViewObjectContact::ActionChanged()
         // invalidate current valid range
         GetObjectContact().InvalidatePartOfView(maObjectRange);
 
-        // reset ObjectRange, it needs to be recalculated
-        maObjectRange.reset();
+        // reset gridOffset, it needs to be recalculated
+        if (GetObjectContact().supportsGridOffsets())
+            resetGridOffset();
+        else
+            maObjectRange.reset();
     }
 
     // register at OC for lazy invalidate


More information about the Libreoffice-commits mailing list