Implement undo for eeschema's "Import existing drawings"

Fixes: lp:1522189
* https://bugs.launchpad.net/kicad/+bug/1522189
This commit is contained in:
Jeff Young 2018-01-17 18:58:27 +00:00 committed by Wayne Stambaugh
parent 2fa5c723d8
commit 17e6720bc9
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ void LIB_EDIT_FRAME::LoadOneSymbol()
wxCHECK_RET( alias && alias->GetPart(), "Invalid symbol." ); wxCHECK_RET( alias && alias->GetPart(), "Invalid symbol." );
SaveCopyInUndoList( part );
LIB_PART* first = alias->GetPart(); LIB_PART* first = alias->GetPart();
LIB_ITEMS_CONTAINER& drawList = first->GetDrawItems(); LIB_ITEMS_CONTAINER& drawList = first->GetDrawItems();