kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31222
[PATCH 2/2] Draw: Grow clip area for filled circles by line width
Since the outline is drawn as well, we need to draw the circle also if only
the outline touches the canvas.
---
common/gr_basic.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/gr_basic.cpp b/common/gr_basic.cpp
index 13733d612..c142cf80f 100644
--- a/common/gr_basic.cpp
+++ b/common/gr_basic.cpp
@@ -842,7 +842,7 @@ void GRCircle( EDA_RECT* aClipBox, wxDC* aDC, wxPoint aPos, int aRadius, int aWi
void GRFilledCircle( EDA_RECT* ClipBox, wxDC* DC, int x, int y, int r,
int width, COLOR4D Color, COLOR4D BgColor )
{
- if( ClipCircle( ClipBox, x, y, r, 0 ) )
+ if( ClipCircle( ClipBox, x, y, r, width ) )
return;
GRSetBrush( DC, BgColor, FILLED );
Follow ups
References