From a68b24ab9c19f5f0b518f67ad1d7c11528d59b57 Mon Sep 17 00:00:00 2001 From: Andrew <809975+andrewtron3000@users.noreply.github.com> Date: Sun, 9 May 2021 12:45:24 -0700 Subject: [PATCH] #41: Stop iterator when y exceeds one pixel beyond quadrant bounds. --- services/graphics-server/src/op.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/graphics-server/src/op.rs b/services/graphics-server/src/op.rs index 088f5d4e0..2d53f6942 100644 --- a/services/graphics-server/src/op.rs +++ b/services/graphics-server/src/op.rs @@ -317,8 +317,8 @@ impl Iterator for QuadrantIterator { self.p.x = -(self.radius as i16); self.p.y += 1; } - if self.p.y > 0 as i16 { - break item; + if self.p.y > 1 as i16 { + break None; } if item.is_some() { break item; @@ -329,8 +329,8 @@ impl Iterator for QuadrantIterator { self.p.x = 0; self.p.y += 1; } - if self.p.y > 0 as i16 { - break item; + if self.p.y > 1 as i16 { + break None; } if item.is_some() { break item;