From 8fde4dc8437ba9c5ce0fa1808fab9f106edfbe26 Mon Sep 17 00:00:00 2001 From: maj00r Date: Thu, 22 Oct 2026 13:27:29 +0200 Subject: [PATCH] fix(editor): the readout of a straight dragged beside another one writes the arrow as ->, the font of the interface has no arrows and showed a question mark --- application/editormodestraights.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/editormodestraights.cpp b/application/editormodestraights.cpp index 265a0e83..239ced1e 100644 --- a/application/editormodestraights.cpp +++ b/application/editormodestraights.cpp @@ -189,7 +189,7 @@ void editor_mode::draw_straights_overlay() const if (projection.project((foot + target) * 0.5, screen)) { auto const angle{glm::degrees(std::abs(std::asin(std::clamp(line.direction.x * other.direction.y - line.direction.y * other.direction.x, -1.0, 1.0))))}; - auto const text{highlighted ? (offer.snaps ? format(STR_C("parallel %.2f m"), offer.spacing) : format("%.2f → %.2f m %.1f°", std::abs(lateral), offer.spacing, offer.angle)) : + auto const text{highlighted ? (offer.snaps ? format(STR_C("parallel %.2f m"), offer.spacing) : format("%.2f -> %.2f m %.1f°", std::abs(lateral), offer.spacing, offer.angle)) : (angle > 0.05 ? format("%.2f m %.1f°", std::abs(lateral), angle) : format("%.2f m", std::abs(lateral)))}; auto const *label{text.c_str()}; auto const size{ImGui::CalcTextSize(label)};