Skip to content
Snippets Groups Projects
Commit 42dae150 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Seth Hillbrand
Browse files

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

parent 440d324c
No related branches found
No related tags found
Loading
......@@ -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() ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment