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:
Jeff Young
2020-08-10 14:23:11 +01:00
parent 827138f6b4
commit 692aeff334
10 changed files with 70 additions and 41 deletions
+5 -4
View File
@@ -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 );