summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormert <mert.tumer@collabora.com>2021-03-04 12:17:27 +0300
committerMert Tumer <mert.tumer@collabora.com>2021-03-12 04:36:28 +0100
commit2246b6a2887b90efc712c4479b19609cf9307a3d (patch)
tree004a118a3b6e5caaa98cb934d2670ab370dcea84 /include
parent4a4a38d31a287f78d4c7226fe85aafb6e6c6c0ac (diff)
Fix wrong position on move when page has margin
Change-Id: I9ac2d9914b86210ca2148b44488c2c70cc5870d4 Signed-off-by: mert <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111949 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111929 Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdedtv.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 916fdaeb186b..eb815b728cb3 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -304,7 +304,11 @@ public:
// geometrical attribute (position, size, rotation angle)
// A PageOrigin set at a position is taken into account.
SfxItemSet GetGeoAttrFromMarked() const;
- void SetGeoAttrToMarked(const SfxItemSet& rAttr);
+ // In LOK, interactive shape movement uses this function
+ // in that case, margin is not taken into account
+ // and the final position of the shape becomes incorrect
+ // However, "Position and Size" dialog and other cases already add the margins.
+ void SetGeoAttrToMarked(const SfxItemSet& rAttr, bool addPageMargin = false);
// Returns NULL if:
// - nothing is marked,