diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index d4810aaa29..cde120969e 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -872,7 +872,7 @@ int PCBNEW_CONTROL::placeBoardItems( std::vector& aItems, bool aIsN // object. item->SetSelected(); - if( !item->GetParentGroup() || !item->GetParentGroup()->IsSelected() ) + if( !item->GetParentGroup() || !std::contains( aItems, item->GetParentGroup() ) ) selection.Add( item ); }