Pcbnew: Fix bug Bug #898178
This commit is contained in:
parent
31bcc6eed9
commit
3a887850ee
Binary file not shown.
Binary file not shown.
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue