mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
SHAPE RECTANGLE: fix hatching clipping for round rectangle.
This commit is contained in:
parent
814f78f2b2
commit
68f9b74ae9
@ -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…
x
Reference in New Issue
Block a user