diff --git a/crates/tools/src/builder/map.rs b/crates/tools/src/builder/map.rs index b2a37c0a7..ddcbcb310 100644 --- a/crates/tools/src/builder/map.rs +++ b/crates/tools/src/builder/map.rs @@ -454,7 +454,7 @@ pub fn hatch(path: &BezPath, gap: f64) -> BezPath { // a 400th of the height, so 402 lines cover it. for i in 0..402u32 { let y = start + f64::from(i) * gap; - if !(y < y1) { + if y.partial_cmp(&y1) != Some(std::cmp::Ordering::Less) { break; } xs.clear();