Fix expand selection for graphic shapes on graphic layers
This commit is contained in:
parent
d382a11c2a
commit
87ba1f7ea0
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue