Commit ced5d7b4 authored by dickelbeck's avatar dickelbeck

highlight tool HitTest()ing prefers pads over tracks

parent d8f8e027
......@@ -116,10 +116,18 @@ int WinEDA_PcbFrame::Select_High_Light( wxDC* DC )
SendMessageToEESCHEMA( item );
return g_HightLigth_NetCode;
default:
case TYPETRACK:
case TYPEVIA:
case TYPEZONE:
// since these classes are all derived from TRACK, use a common
// GetNet() function:
g_HightLigth_NetCode = ((TRACK*)item)->GetNet();
Hight_Light( DC );
return g_HightLigth_NetCode;
default:
; // until somebody changes GENERAL_COLLECTOR::PadsOrTracks,
// this should not happen.
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment