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:
parent
230a976742
commit
a414cb0a17
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user