From 17e6720bc92135da0336b99d1c09e16154013c10 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 17 Jan 2018 18:58:27 +0000 Subject: [PATCH] Implement undo for eeschema's "Import existing drawings" Fixes: lp:1522189 * https://bugs.launchpad.net/kicad/+bug/1522189 --- eeschema/symbedit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/symbedit.cpp b/eeschema/symbedit.cpp index 9b2a397b0c..a1bea8b947 100644 --- a/eeschema/symbedit.cpp +++ b/eeschema/symbedit.cpp @@ -120,6 +120,8 @@ void LIB_EDIT_FRAME::LoadOneSymbol() wxCHECK_RET( alias && alias->GetPart(), "Invalid symbol." ); + SaveCopyInUndoList( part ); + LIB_PART* first = alias->GetPart(); LIB_ITEMS_CONTAINER& drawList = first->GetDrawItems();