Fix a bunch of usages of copy ctor that really meant duplicate.
In particular, "duplicate" means "with a new KIID". Fixes https://gitlab.com/kicad/code/kicad/issues/5127
This commit is contained in:
@@ -144,10 +144,11 @@ void ARRAY_CREATOR::Invoke()
|
||||
|
||||
if( this_item->Type() == PCB_MODULE_T )
|
||||
{
|
||||
static_cast<MODULE*>( this_item )->RunOnChildren( [&] ( BOARD_ITEM* aItem )
|
||||
{
|
||||
aItem->ClearSelected();
|
||||
});
|
||||
static_cast<MODULE*>( this_item )->RunOnChildren(
|
||||
[&]( BOARD_ITEM* aItem )
|
||||
{
|
||||
aItem->ClearSelected();
|
||||
});
|
||||
}
|
||||
|
||||
commit.Add( new_item );
|
||||
|
||||
Reference in New Issue
Block a user