From 68f9b74ae91ef6b6e8de57fd2119916dd4a0a709 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 31 Aug 2025 10:05:21 +0200 Subject: [PATCH] SHAPE RECTANGLE: fix hatching clipping for round rectangle. --- common/eda_shape.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/eda_shape.cpp b/common/eda_shape.cpp index f064799855..7bc2a3ed3d 100644 --- a/common/eda_shape.cpp +++ b/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: