Browse Source

Make sure polygonization error is on correct side.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16869
newinvert
Jeff Young 2 years ago
parent
commit
36275bcbc5
  1. 9
      common/eda_shape.cpp

9
common/eda_shape.cpp

@ -1737,7 +1737,14 @@ void EDA_SHAPE::TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, int aClearance
tmp.Append( poly.GetPoint( jj ) );
if( width > 0 )
tmp.Inflate( width/2, CORNER_STRATEGY::ROUND_ALL_CORNERS, aError, false);
{
int inflate = width / 2;
if( aErrorLoc == ERROR_OUTSIDE )
inflate += aError;
tmp.Inflate( inflate, CORNER_STRATEGY::ROUND_ALL_CORNERS, aError );
}
aBuffer.Append( tmp );
}

Loading…
Cancel
Save