diff options
Diffstat (limited to 'sw/source/ui/sidebar/PageMarginControl.cxx')
-rw-r--r-- | sw/source/ui/sidebar/PageMarginControl.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/ui/sidebar/PageMarginControl.cxx b/sw/source/ui/sidebar/PageMarginControl.cxx index 6bbc4b7c46d1..89e0ca0617a9 100644 --- a/sw/source/ui/sidebar/PageMarginControl.cxx +++ b/sw/source/ui/sidebar/PageMarginControl.cxx @@ -359,6 +359,7 @@ IMPL_LINK(PageMarginControl, ImplMarginHdl, void *, pControl) if ( bApplyNewPageMargins ) { + mrPagePropPanel.StartUndo(); mpMarginValueSet->SetNoSelection(); mrPagePropPanel.ExecuteMarginLRChange( mnPageLeftMargin, mnPageRightMargin ); mrPagePropPanel.ExecuteMarginULChange( mnPageTopMargin, mnPageBottomMargin ); @@ -367,6 +368,7 @@ IMPL_LINK(PageMarginControl, ImplMarginHdl, void *, pControl) mbMirrored = bMirrored; mrPagePropPanel.ExecutePageLayoutChange( mbMirrored ); } + mrPagePropPanel.EndUndo(); mbCustomValuesUsed = false; mrPagePropPanel.ClosePageMarginPopup(); |