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:
parent
0bce0f37e4
commit
ec3158d03a
|
@ -357,14 +357,6 @@ void BOARD_COMMIT::Revert()
|
||||||
|
|
||||||
item->SwapData( copy );
|
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 );
|
view->Add( item );
|
||||||
connectivity->Add( item );
|
connectivity->Add( item );
|
||||||
delete copy;
|
delete copy;
|
||||||
|
|
Loading…
Reference in New Issue