diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-16 15:58:11 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-08-24 14:50:52 +0200 |
commit | 71999c5a47ef972ea68306585e74f0e9031df03b (patch) | |
tree | 129b05d4df140230b82676ded6cc6f82c46bf083 /cui | |
parent | Resolves: tdf#139220 with ~1000 selected shapes a11y UpdateSelection crawls (diff) | |
download | core-71999c5a47ef972ea68306585e74f0e9031df03b.tar.gz core-71999c5a47ef972ea68306585e74f0e9031df03b.zip |
Resolves: tdf#143785 save/restore SdrModel::IsChanged
Change-Id: I253915c359cf72f80b21e21ff34e0ee406e5b3a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120550
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 6dc23567639bebf18ceb8d9a3721228bffe14202)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120578
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/transfrm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index cec57ecbbbe7..c8d0133ab58d 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -647,6 +647,7 @@ void SvxSlantTabPage::Reset(const SfxItemSet* rAttrs) *pView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj())); //save geometry + const bool bOrigModelChangeState = pView->GetModel()->IsChanged(); SdrCustomShapeGeometryItem aInitialGeometry(rSdrObjCustomShape.GetMergedItem(SDRATTR_CUSTOMSHAPE_GEOMETRY)); EnhancedCustomShape2d aShape(rSdrObjCustomShape); @@ -690,6 +691,7 @@ void SvxSlantTabPage::Reset(const SfxItemSet* rAttrs) //restore geometry rSdrObjCustomShape.SetMergedItem(aInitialGeometry); + pView->GetModel()->SetChanged(bOrigModelChangeState); } for (int i = 0; i < 2; ++i) |