summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-28 13:08:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-28 13:35:54 +0100
commit8f72afaf55a2fdf5a4d25984d2b39b410359d0d1 (patch)
treefdb5862e1d4f3d388787dd5e44e2f01c1cfd013d /svx
parent0f4ce1e2a19eac4cfac37360114e5e49e4d10d09 (diff)
implement undo for equalize-marked-objects
Change-Id: I245e08674b52c2a5648e9d7762101b8057fd30e9
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv2.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 75c884c20a42..719355d9729b 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1200,6 +1200,8 @@ void SdrEditView::EqualizeMarkedObjects(bool bWidth)
else
aLogicRectSize.Height() = aLastRectSize.Height();
aLogicRect.SetSize(aLogicRectSize);
+ if (bUndo)
+ AddUndo(GetModel()->GetSdrUndoFactory().CreateUndoGeoObject(*pObj));
pObj->SetLogicRect(aLogicRect);
}