Browse Source

SHAPE RECTANGLE: fix hatching clipping for round rectangle.

master
jean-pierre charras 2 months ago
parent
commit
68f9b74ae9
  1. 10
      common/eda_shape.cpp

10
common/eda_shape.cpp

@ -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:

Loading…
Cancel
Save