Commit 3a887850 authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: Fix bug Bug #898178

parent 31bcc6ee
......@@ -222,6 +222,9 @@ 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();
if( Track == NULL ) // can happen if g_DragSegmentList is empty
Track = NewTrack; // try to use main item
if( Track )
Track->DisplayInfo( frame );
}
......
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