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

pcbnew: bugfix for "PNS router allocates all memory"

parent d3f15f21
...@@ -200,6 +200,9 @@ bool PNS_LINE::Walkaround( SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN& aPre, ...@@ -200,6 +200,9 @@ bool PNS_LINE::Walkaround( SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN& aPre,
const VECTOR2I p = ips[i].p; const VECTOR2I p = ips[i].p;
int dist = line.PathLength( p ); int dist = line.PathLength( p );
if( dist < 0 )
return false;
if( dist <= nearest_dist ) if( dist <= nearest_dist )
{ {
nearest_dist = dist; nearest_dist = dist;
......
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