From c096c91300e0725dcd2d5d1ad2e4c307ec1dba3e Mon Sep 17 00:00:00 2001 From: PolyMeilex Date: Sun, 14 Jan 2024 04:22:17 +0100 Subject: [PATCH] Skip processing invisible measures --- neothesia-core/src/render/guidelines.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neothesia-core/src/render/guidelines.rs b/neothesia-core/src/render/guidelines.rs index 64d011f2..551248e2 100644 --- a/neothesia-core/src/render/guidelines.rs +++ b/neothesia-core/src/render/guidelines.rs @@ -94,6 +94,10 @@ impl GuidelineRenderer { let w = f32::MAX; let h = 1.0; + if y < 0.0 { + break; + } + quads.instances().push(QuadInstance { position: [x, y], size: [w, h],