From 69e5ba42c57a51ab706cd25c0260c85c938cfccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 28 Aug 2015 13:12:25 +0100 Subject: [PATCH] implement undo for equalize objects --- ...ent-undo-for-equalize-marked-objects.patch | 26 +++++++++++++++++++ libreoffice.spec | 1 + 2 files changed, 27 insertions(+) create mode 100644 0001-implement-undo-for-equalize-marked-objects.patch diff --git a/0001-implement-undo-for-equalize-marked-objects.patch b/0001-implement-undo-for-equalize-marked-objects.patch new file mode 100644 index 0000000..60d4121 --- /dev/null +++ b/0001-implement-undo-for-equalize-marked-objects.patch @@ -0,0 +1,26 @@ +From 4c8197bc270ec65c147af3388e35403aa77fd02f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= +Date: Fri, 28 Aug 2015 13:08:44 +0100 +Subject: [PATCH] implement undo for equalize-marked-objects + +Change-Id: I245e08674b52c2a5648e9d7762101b8057fd30e9 +--- + svx/source/svdraw/svdedtv2.cxx | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx +index 75c884c..719355d 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); + } + +-- +2.4.0 + diff --git a/libreoffice.spec b/libreoffice.spec index 6366b93..049f460 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -328,6 +328,7 @@ Patch19: 0001-rhbz-1233420-handle-inexistent-cond.-format.patch Patch20: 0001-allow-slide-design-to-affect-multiple-standard-pages.patch Patch21: 0001-implement-equalize-width-and-height-for-impress-draw.patch Patch22: 0001-f22-openjdk-for-ppc64le-has-both-these-dirs-but-jawt.patch +Patch23: 0001-implement-undo-for-equalize-marked-objects.patch %define instdir %{_libdir} %define baseinstdir %{instdir}/libreoffice