diff options
Diffstat (limited to 'sw/source/core/undo/SwUndoPageDesc.cxx')
-rw-r--r-- | sw/source/core/undo/SwUndoPageDesc.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/undo/SwUndoPageDesc.cxx b/sw/source/core/undo/SwUndoPageDesc.cxx index c55eb68139a4..6473547ff17f 100644 --- a/sw/source/core/undo/SwUndoPageDesc.cxx +++ b/sw/source/core/undo/SwUndoPageDesc.cxx @@ -363,7 +363,6 @@ SwRewriter SwUndoPageDesc::GetRewriter() const return aResult; } -// #116530# SwUndoPageDescCreate::SwUndoPageDescCreate(const SwPageDesc * pNew, SwDoc * _pDoc) : SwUndo(UNDO_CREATE_PAGEDESC), pDesc(pNew), aNew(*pNew, _pDoc), @@ -378,13 +377,11 @@ SwUndoPageDescCreate::~SwUndoPageDescCreate() void SwUndoPageDescCreate::UndoImpl(::sw::UndoRedoContext &) { - // -> #116530# if (pDesc) { aNew = *pDesc; pDesc = NULL; } - // <- #116530# pDoc->DelPageDesc(aNew.GetName(), true); } @@ -392,7 +389,7 @@ void SwUndoPageDescCreate::UndoImpl(::sw::UndoRedoContext &) void SwUndoPageDescCreate::DoImpl() { SwPageDesc aPageDesc = aNew; - pDoc->MakePageDesc(aNew.GetName(), &aPageDesc, false, true); // #116530# + pDoc->MakePageDesc(aNew.GetName(), &aPageDesc, false, true); } void SwUndoPageDescCreate::RedoImpl(::sw::UndoRedoContext &) @@ -432,12 +429,12 @@ SwUndoPageDescDelete::~SwUndoPageDescDelete() void SwUndoPageDescDelete::UndoImpl(::sw::UndoRedoContext &) { SwPageDesc aPageDesc = aOld; - pDoc->MakePageDesc(aOld.GetName(), &aPageDesc, false, true); // #116530# + pDoc->MakePageDesc(aOld.GetName(), &aPageDesc, false, true); } void SwUndoPageDescDelete::DoImpl() { - pDoc->DelPageDesc(aOld.GetName(), true); // #116530# + pDoc->DelPageDesc(aOld.GetName(), true); } void SwUndoPageDescDelete::RedoImpl(::sw::UndoRedoContext &) |