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:
parent
076f07c683
commit
23aa838a03
|
@ -254,6 +254,7 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
|
||||||
DuplicateItemsInList( GetScreen(), block->GetItems(), block->GetMoveVector() );
|
DuplicateItemsInList( GetScreen(), block->GetItems(), block->GetMoveVector() );
|
||||||
block->SetLastCursorPosition( GetCrossHairPosition() );
|
block->SetLastCursorPosition( GetCrossHairPosition() );
|
||||||
SaveCopyInUndoList( block->GetItems(), UR_NEW );
|
SaveCopyInUndoList( block->GetItems(), UR_NEW );
|
||||||
|
block->SetAppendUndo();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( block->GetCount() )
|
if( block->GetCount() )
|
||||||
|
|
Loading…
Reference in New Issue