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
(cherry picked from commit 3620887a22
)
This commit is contained in:
parent
dc6d421fa2
commit
6482a322da
|
@ -1426,8 +1426,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