Better detection of degenerated PCB_ARC.

This commit is contained in:
jean-pierre charras 2023-09-14 11:40:20 +02:00
parent 931401b5be
commit 51456d973b
1 changed files with 2 additions and 1 deletions

View File

@ -1177,8 +1177,9 @@ bool PCB_ARC::IsDegenerated( int aThreshold ) const
// cannot be safely computed if the distance between mid and end points
// is too small (a few internal units)
// len of both segments must be >= aThreshold to be not Degenerated arc
return ( GetMid() - GetStart() ).EuclideanNorm() < aThreshold
|| ( GetMid() - GetEnd() ).EuclideanNorm() < aThreshold;
&& ( GetMid() - GetEnd() ).EuclideanNorm() < aThreshold;
}