fix confusion between circle radius and diameter

classic shite
This commit is contained in:
2026-03-19 19:05:12 +01:00
parent dd59c7d51a
commit ad45eddbf5
3 changed files with 5 additions and 5 deletions

View File

@@ -56,10 +56,10 @@ public class ShapeDraftman implements ShapeVisitor {
}
if (colAttrs.filled) {
this.g2d.setColor(colAttrs.filledColor);
this.g2d.fillOval(bounds.x, bounds.y, circle.getRadius(), circle.getRadius());
this.g2d.fillOval(bounds.x, bounds.y, 2 * circle.getRadius(), 2 * circle.getRadius());
}
if (colAttrs.stroked) this.g2d.setColor(colAttrs.strokedColor);
this.g2d.drawOval(bounds.x, bounds.y, circle.getRadius(), circle.getRadius());
this.g2d.drawOval(bounds.x, bounds.y, 2 * circle.getRadius(), 2 * circle.getRadius());
drawHandlerIfSelected(circle);
}