diff --git a/pcbnew/router/pns_dragger.cpp b/pcbnew/router/pns_dragger.cpp index 66547ad349..28cf810abe 100644 --- a/pcbnew/router/pns_dragger.cpp +++ b/pcbnew/router/pns_dragger.cpp @@ -573,6 +573,9 @@ bool DRAGGER::dragWalkaround( const VECTOR2I& aP ) ok = true; } + if( draggedWalk.CLine().PointCount() < 2 ) + ok = false; + if( ok ) { PNS_DBG( Dbg(), AddLine, origLine.CLine(), BLUE, 50000, "drag-orig-line" );