BOARD_COMMIT::Revert() marked as not tested

This commit is contained in:
Maciej Suminski 2016-06-20 11:25:40 +02:00
parent f1b37109e3
commit 08d15a9961
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}