SHAPE RECTANGLE: fix hatching clipping for round rectangle.

This commit is contained in:
jean-pierre charras 2025-08-31 10:05:21 +02:00
parent 814f78f2b2
commit 68f9b74ae9

View File

@ -634,11 +634,11 @@ void EDA_SHAPE::UpdateHatching() const
return;
case SHAPE_T::RECTANGLE:
shapeBuffer.NewOutline();
for( const VECTOR2I& pt : GetRectCorners() )
shapeBuffer.Append( pt );
{
ROUNDRECT rr( SHAPE_RECT( getPosition(), GetRectangleWidth(),
GetRectangleHeight() ), GetCornerRadius() );
rr.TransformToPolygon( shapeBuffer );
}
break;
case SHAPE_T::CIRCLE: