highlight tool HitTest()ing prefers pads over tracks
This commit is contained in:
parent
d8f8e02745
commit
ced5d7b459
|
@ -116,10 +116,18 @@ int WinEDA_PcbFrame::Select_High_Light( wxDC* DC )
|
||||||
SendMessageToEESCHEMA( item );
|
SendMessageToEESCHEMA( item );
|
||||||
return g_HightLigth_NetCode;
|
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();
|
g_HightLigth_NetCode = ((TRACK*)item)->GetNet();
|
||||||
Hight_Light( DC );
|
Hight_Light( DC );
|
||||||
return g_HightLigth_NetCode;
|
return g_HightLigth_NetCode;
|
||||||
|
|
||||||
|
default:
|
||||||
|
; // until somebody changes GENERAL_COLLECTOR::PadsOrTracks,
|
||||||
|
// this should not happen.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue