Fix expand selection for graphic shapes on graphic layers

This commit is contained in:
Jon Evans 2023-11-20 16:14:50 -05:00
parent d382a11c2a
commit 87ba1f7ea0
1 changed files with 5 additions and 1 deletions

View File

@ -1223,8 +1223,12 @@ int PCB_SELECTION_TOOL::expandConnection( const TOOL_EVENT& aEvent )
for( const EDA_ITEM* item : m_selection.GetItems() )
{
if( item->Type() == PCB_FOOTPRINT_T || BOARD_CONNECTED_ITEM::ClassOf( item ) )
if( item->Type() == PCB_FOOTPRINT_T ||
( BOARD_CONNECTED_ITEM::ClassOf( item )
&& static_cast<const BOARD_CONNECTED_ITEM*>( item )->IsConnected() ) )
{
initialCount++;
}
}
if( initialCount == 0 )