Refactoring of VIEW/VIEW_ITEM classes:
- Remove dependency of EDA_ITEM on VIEW - VIEW_ITEM is now a pure virtual interface
This commit is contained in:
committed by
Maciej Suminski
parent
27a10e8597
commit
1c1f4e9a50
@@ -253,7 +253,13 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry)
|
||||
undoList.PushItem( itemWrapper );
|
||||
}
|
||||
|
||||
boardItem->ViewUpdate( KIGFX::VIEW_ITEM::ALL );
|
||||
if ( boardItem->Type() == PCB_MODULE_T )
|
||||
{
|
||||
MODULE* module = static_cast<MODULE*>( boardItem );
|
||||
module->RunOnChildren( boost::bind( &KIGFX::VIEW::Update, view, _1 ) );
|
||||
}
|
||||
|
||||
view->Update ( boardItem );
|
||||
ratsnest->Update( boardItem );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user