router: fix negative chamfer value for hulls generated for 0-length segments

This commit is contained in:
Tomasz Wlostowski 2022-08-18 22:42:16 +02:00 committed by Seth Hillbrand
parent 440d324c9e
commit 42dae1504a
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ const SHAPE_LINE_CHAIN SegmentHull ( const SHAPE_SEGMENT& aSeg, int aClearance,
if( a == b )
{
int xx2 = KiROUND( 2.0 * ( 1.0 - M_SQRT2 ) * d );
int xx2 = KiROUND( 2.0 * ( 1.0 - M_SQRT1_2 ) * d );
return OctagonalHull( a - VECTOR2I( aSeg.GetWidth() / 2, aSeg.GetWidth() / 2 ),
VECTOR2I( aSeg.GetWidth(), aSeg.GetWidth() ),