Fixed ratsnest update after removing items.

This commit is contained in:
Maciej Suminski 2014-04-09 16:57:22 +02:00
parent c5e84fe49a
commit 1a3f7989df
1 changed files with 1 additions and 4 deletions

View File

@ -395,10 +395,7 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent )
remove( item );
}
// Rebuild list of pads and nets if necessary
BOARD* board = getModel<BOARD>( PCB_T );
if( !( board->m_Status_Pcb & NET_CODES_OK ) )
board->BuildListOfNets();
getModel<BOARD>( PCB_T )->GetRatsnest()->Recalculate();
setTransitions();