From dfa261197d6362565413d1be34c38ecdc8fac9d3 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Wed, 11 Oct 2023 17:16:30 +0300 Subject: [PATCH] Fix bug rasterizing ellipses (#68) --- Sources/geometrize/Shapes/Ellipse.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/geometrize/Shapes/Ellipse.swift b/Sources/geometrize/Shapes/Ellipse.swift index d7ea774..7d2b379 100644 --- a/Sources/geometrize/Shapes/Ellipse.swift +++ b/Sources/geometrize/Shapes/Ellipse.swift @@ -64,7 +64,7 @@ public final class Ellipse: Shape { if x2 >= xMax { x2 = xMax - 1 } - if y1 >= xMin && y1 < yMax { + if y1 >= yMin && y1 < yMax { if let line = Scanline(y: y1, x1: x1, x2: x2).trimmed(minX: xMin, minY: yMin, maxX: xMax, maxY: yMax) { lines.append(line) }