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:
parent
5156229da7
commit
3620887a22
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue