Pcbnew: Fix bug Bug #898178

This commit is contained in:
jean-pierre charras 2011-11-30 21:05:17 +01:00
parent 31bcc6eed9
commit 3a887850ee
3 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ static void Show_MoveNode( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPo
// Display track length
PCB_BASE_FRAME* frame = (PCB_BASE_FRAME*) aPanel->GetParent();
Track->DisplayInfo( frame );
if( Track == NULL ) // can happen if g_DragSegmentList is empty
Track = NewTrack; // try to use main item
if( Track )
Track->DisplayInfo( frame );
}