From d729201321fbfc59beeb70ba31c50a6e565266c5 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Wed, 20 May 2026 19:35:34 +0200 Subject: [PATCH] yaclf --- src/components/CardLayout.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/CardLayout.cpp b/src/components/CardLayout.cpp index eb59687f..af393a09 100644 --- a/src/components/CardLayout.cpp +++ b/src/components/CardLayout.cpp @@ -87,8 +87,7 @@ WrappedLabel wrapLabel(const GfxRenderer& renderer, const char* label, int maxWi // until label + "…" fits. const int ellipsisW = renderer.getTextWidth(fontId, "…"); std::string truncated = s; - while (!truncated.empty() && - renderer.getTextWidth(fontId, truncated.c_str()) + ellipsisW > maxWidth) { + while (!truncated.empty() && renderer.getTextWidth(fontId, truncated.c_str()) + ellipsisW > maxWidth) { truncated.pop_back(); } out.line1 = truncated + "…";