router: fix negative chamfer value for hulls generated for 0-length segments
This commit is contained in:
parent
440d324c9e
commit
42dae1504a
|
@ -235,7 +235,7 @@ const SHAPE_LINE_CHAIN SegmentHull ( const SHAPE_SEGMENT& aSeg, int aClearance,
|
||||||
|
|
||||||
if( a == b )
|
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 ),
|
return OctagonalHull( a - VECTOR2I( aSeg.GetWidth() / 2, aSeg.GetWidth() / 2 ),
|
||||||
VECTOR2I( aSeg.GetWidth(), aSeg.GetWidth() ),
|
VECTOR2I( aSeg.GetWidth(), aSeg.GetWidth() ),
|
||||||
|
|
Loading…
Reference in New Issue