浏览代码

Fixed 0 width ellipse

flabbet 9 月之前
父节点
当前提交
b5953be96a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ChunkyImageLib/Operations/EllipseOperation.cs

+ 1 - 1
src/ChunkyImageLib/Operations/EllipseOperation.cs

@@ -107,7 +107,7 @@ internal class EllipseOperation : IMirroredDrawOperation
                     surf.Canvas.DrawRect((RectD)ellipseFillRect!.Value, paint);
                 }
                 
-                paint.Color = strokeColor;
+                paint.Color = strokeWidth <= 0 ? fillColor : strokeColor;
                 paint.StrokeWidth = 1f;
                 surf.Canvas.DrawPoints(PointMode.Points, ellipse!, paint);
             }