diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-16 15:58:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-16 21:46:23 +0200 |
commit | 6dc23567639bebf18ceb8d9a3721228bffe14202 (patch) | |
tree | 0b455f867844fadca558dc899b4257cd8d90fc6a /cui | |
parent | 58b2d04ddab5a678921610bf9e9a5a95ae660a17 (diff) |
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>
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 5ffe490745b6..f9396cfd6ab4 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -628,6 +628,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); @@ -671,6 +672,7 @@ void SvxSlantTabPage::Reset(const SfxItemSet* rAttrs) //restore geometry rSdrObjCustomShape.SetMergedItem(aInitialGeometry); + pView->GetModel()->SetChanged(bOrigModelChangeState); } for (int i = 0; i < 2; ++i) |