From 9f93cf3f5ffba16d805e7b5194ad5b84ed6c90e5 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 5 Sep 2024 21:29:42 -0400 Subject: [PATCH] Restore single character names (sigh) (#1275) Closes #1271 --- .../edit-screen/components/mapping-pane/ZoneLayoutDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/app/edit-screen/components/mapping-pane/ZoneLayoutDisplay.cpp b/src-ui/app/edit-screen/components/mapping-pane/ZoneLayoutDisplay.cpp index 784f798f..f60712e4 100644 --- a/src-ui/app/edit-screen/components/mapping-pane/ZoneLayoutDisplay.cpp +++ b/src-ui/app/edit-screen/components/mapping-pane/ZoneLayoutDisplay.cpp @@ -999,7 +999,7 @@ void ZoneLayoutDisplay::labelZoneRectangle(juce::Graphics &g, const juce::Rectan ga.removeRangeOfGlyphs(ga.getNumGlyphs() - 1, -1); bb = ga.getBoundingBox(0, -1, false); } - if (ga.getNumGlyphs() <= 1) + if (ga.getNumGlyphs() < 1) return; auto cx = (rr.getWidth() - bb.getWidth()) / 2 + rr.getX();