From 08d15a9961910ea027fda693cf051e7aa8924edc Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 20 Jun 2016 11:25:40 +0200 Subject: [PATCH] BOARD_COMMIT::Revert() marked as not tested --- pcbnew/board_commit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index d4d90cb491..98c1225b0a 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -272,6 +272,8 @@ EDA_ITEM* BOARD_COMMIT::parentObject( EDA_ITEM* aItem ) const void BOARD_COMMIT::Revert() { + assert( false ); // the code below has not been tested + PICKED_ITEMS_LIST undoList; KIGFX::VIEW* view = m_toolMgr->GetView(); BOARD* board = (BOARD*) m_toolMgr->GetModel(); @@ -308,6 +310,7 @@ void BOARD_COMMIT::Revert() view->Add( item ); ratsnest->Add( item ); item->ClearFlags( SELECTED ); + delete copy; break; }