Avoid an infinite loop in PNS
Fixes: lp:1702485 * https://bugs.launchpad.net/kicad/+bug/1702485
This commit is contained in:
parent
1724f902a1
commit
885a4c1bc5
|
@ -410,6 +410,10 @@ static VECTOR2I makeGapVector( VECTOR2I dir, int length )
|
|||
{
|
||||
int l = length / 2;
|
||||
VECTOR2I rv;
|
||||
|
||||
if( dir.EuclideanNorm() == 0 )
|
||||
return dir;
|
||||
|
||||
do
|
||||
{
|
||||
rv = dir.Resize( l );
|
||||
|
|
Loading…
Reference in New Issue