Optionally use electrical type when shown.

We also need to consider electrical type as an exact hit when we are
showing it.  Otherwise, we get the pin added to our consideration list
but not selected without hitting close neighbors

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16183
This commit is contained in:
Seth Hillbrand 2024-05-06 10:36:20 -07:00
parent 5156229da7
commit 3620887a22
1 changed files with 6 additions and 0 deletions

View File

@ -1450,8 +1450,14 @@ void EE_SELECTION_TOOL::GuessSelectionCandidates( EE_COLLECTOR& collector, const
}
else
{
if( m_frame->GetRenderSettings()->m_ShowPinsElectricalType )
item->SetFlags( SHOW_ELEC_TYPE );
if( item->HitTest( aPos, 0 ) )
exactHits.insert( item );
item->ClearFlags( SHOW_ELEC_TYPE );
}
}