Patch from Craig Cross - fix to spurious event handling of wx-2.8

This commit is contained in:
Marco Serantoni 2010-12-18 10:26:01 +01:00
parent 81b3fdf157
commit d18ce728c0
1 changed files with 3 additions and 0 deletions

View File

@ -686,6 +686,9 @@ void ShowNewTrackWhenMovingCursor( WinEDA_DrawPanel* panel,
DisplayOpt.DisplayPcbTrackFill = true;
int showTrackClearanceMode = DisplayOpt.ShowTrackClearanceMode;
if (g_FirstTrackSegment == NULL)
return;
NETCLASS* netclass = g_FirstTrackSegment->GetNetClass();
if( showTrackClearanceMode != DO_NOT_SHOW_CLEARANCE )