Make highlight net flexible with grid

This commit is contained in:
Seth Hillbrand 2021-01-29 14:28:26 -08:00
parent ea6dc0d730
commit b64611af7a
1 changed files with 2 additions and 1 deletions

View File

@ -1177,7 +1177,8 @@ EDA_ITEM* EE_SELECTION_TOOL::GetNode( VECTOR2I aPosition )
EE_COLLECTOR collector; EE_COLLECTOR collector;
//TODO(snh): Reimplement after exposing KNN interface //TODO(snh): Reimplement after exposing KNN interface
int thresholdMax = KiROUND( getView()->ToWorld( HITTEST_THRESHOLD_PIXELS ) ); int thresholdMax = KiROUND(
m_toolMgr->GetView()->GetGAL()->GetGridSize().EuclideanNorm() );
for( int threshold : { 0, thresholdMax/2, thresholdMax } ) for( int threshold : { 0, thresholdMax/2, thresholdMax } )
{ {