Commit 0cf334a0 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Maciej Suminski
Browse files

pcbnew: bugfix for "PNS router allocates all memory"

parent d3f15f21
Loading
Loading
Loading
Loading
+26 −23
Original line number Diff line number Diff line
@@ -200,6 +200,9 @@ bool PNS_LINE::Walkaround( SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN& aPre,
        const VECTOR2I p = ips[i].p;
        int dist = line.PathLength( p );

        if( dist < 0 )
            return false;

        if( dist <= nearest_dist )
        {
            nearest_dist = dist;