7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

EDA_SHAPE: fix crash when trying to create a hatch pattern inside a circle.

This commit is contained in:
jean-pierre charras 2025-02-27 18:03:14 +01:00
parent 230a976742
commit a414cb0a17

View File

@ -626,7 +626,7 @@ void EDA_SHAPE::updateHatching() const
break;
case SHAPE_T::CIRCLE:
TransformShapeToPolygon( shapeBuffer, 0, ARC_HIGH_DEF, ERROR_INSIDE, true );
TransformCircleToPolygon( shapeBuffer, getCenter(), GetRadius(), ARC_HIGH_DEF, ERROR_INSIDE );
addHatchLines( shapeBuffer.GenerateHatchLines( slopes, spacing, -1 ) );
break;