pcbnew: bugfix for "PNS router allocates all memory"
This commit is contained in:
parent
d3f15f2146
commit
0cf334a072
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue