pcbnew: Don't clear module flags on revert

The RebuildSelection routine now handles updating the selection based on
flags.

Fixes: lp:1831881
* https://bugs.launchpad.net/kicad/+bug/1831881
This commit is contained in:
Seth Hillbrand 2019-06-23 17:25:47 -07:00
parent 0bce0f37e4
commit ec3158d03a
1 changed files with 0 additions and 8 deletions

View File

@ -357,14 +357,6 @@ void BOARD_COMMIT::Revert()
item->SwapData( copy );
// Update all pads/drawings/texts, as they become invalid
// for the VIEW after SwapData() called for modules
if( item->Type() == PCB_MODULE_T )
{
MODULE* newModule = static_cast<MODULE*>( item );
newModule->RunOnChildren( std::bind( &EDA_ITEM::ClearFlags, _1, SELECTED ) );
}
view->Add( item );
connectivity->Add( item );
delete copy;