Kaydet (Commit) e0dfd32b authored tarafından Andre Fischer's avatar Andre Fischer Kaydeden (comit) Caolán McNamara

Resolves: #i120172# Add missing undo action for changing PresObj index

Reported by: Shan Zhu
Fixed by: Andre Fischer
(cherry picked from commit 1289f5be)

Change-Id: I6c65dbe9bc87a64ebb2b46a9dc2fda855900c810
üst 2c99bbe1
......@@ -588,6 +588,13 @@ void DrawView::DeleteMarked()
Rectangle aRect( pObj->GetLogicRect() );
SdrObject* pNewObj = pPage->InsertAutoLayoutShape( 0, ePresObjKind, bVertical, aRect, true );
// Move the new PresObj to the position before the
// object it will replace.
pUndoManager->AddUndoAction(
mpDoc->GetSdrUndoFactory().CreateUndoObjectOrdNum(
*pNewObj,
pNewObj->GetOrdNum(),
pObj->GetOrdNum()));
pPage->SetObjectOrdNum( pNewObj->GetOrdNum(), pObj->GetOrdNum() );
bResetLayout = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment