diff options
author | merttumer <mert.tumer@collabora.com> | 2021-03-17 09:01:45 +0300 |
---|---|---|
committer | Mert Tumer <mert.tumer@collabora.com> | 2021-04-20 04:31:49 +0200 |
commit | da7dcf0037b374a8cecdbd2af27748d94a316a79 (patch) | |
tree | 34bd5b5031d5b6b9ffddae94db1d2617d9631774 /svx/source | |
parent | 4c02cbe6b21d30f30d5f5ae923177ddecab4fc06 (diff) |
LOK: Fix wrong gridOffset when shape is moved on calc
Change-Id: I37501128068943cee8f67a5d91a35ec1a76fe550
Signed-off-by: merttumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112599
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114024
Tested-by: Jenkins
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontact.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 |