Mark block for AppendUndo when a command is executed.

This (aside from getting both parts into a single undo stack item)
will ensure that we clean up both parts on an abort.

Fixes: lp:1816284
* https://bugs.launchpad.net/kicad/+bug/1816284
This commit is contained in:
Jeff Young 2019-02-17 10:13:30 +00:00
parent 076f07c683
commit 23aa838a03
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
DuplicateItemsInList( GetScreen(), block->GetItems(), block->GetMoveVector() );
block->SetLastCursorPosition( GetCrossHairPosition() );
SaveCopyInUndoList( block->GetItems(), UR_NEW );
block->SetAppendUndo();
}
if( block->GetCount() )