From 70328f1bd9e2e2957a63cfa24b134b45a5cb3c8c Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 28 Sep 2025 20:25:59 +0200 Subject: [PATCH] fixing trimming color in object list --- client/windows/GUIClasses.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/windows/GUIClasses.cpp b/client/windows/GUIClasses.cpp index 26eca17e3..26cddb220 100644 --- a/client/windows/GUIClasses.cpp +++ b/client/windows/GUIClasses.cpp @@ -1668,6 +1668,8 @@ void CObjectListWindow::trimTextIfTooWide(std::string & text, int id) const { int maxWidth = pos.w - 60; // 60 px for scrollbar and borders std::string idStr = '(' + std::to_string(id) + ')'; + if(text[0] == '{') + idStr = '}' + idStr; const auto & font = ENGINE->renderHandler().loadFont(FONT_SMALL); std::string suffix = " ... " + idStr;