[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - svx/source
merttumer (via logerrit)
logerrit at kemper.freedesktop.org
Thu Mar 18 09:06:48 UTC 2021
svx/source/sdr/contact/viewobjectcontact.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit b4296e1b462ddf626fe2ec2f9f5935993759ff86
Author: merttumer <mert.tumer at collabora.com>
AuthorDate: Wed Mar 17 09:01:45 2021 +0300
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Mar 18 10:06:10 2021 +0100
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>
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index 882b911a8fab..89e099da71c3 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -234,8 +234,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