From 4d9aa3e6843e76c85e389d2aab68b8c2daaac97a Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 12 Mar 2020 18:36:00 +0200 Subject: [PATCH] Changed: refactor --- code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp index 531987f74..852a94930 100644 --- a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp +++ b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp @@ -1892,14 +1892,11 @@ void CDBCtrlSheet::setupCharBitmaps(sint32 maxW, sint32 maxLine, bool topDown) if(maxLine<=0) return; std::string text(_OptString); - if (_Type != SheetType_Macro && text.size() > 4) + // check for icon text 'uiitLabel' + if (text.size() > 4 && text[0] == 'u' && text[1] == 'i' && text[2] == 'i' && text[3] == 't' && CI18N::hasTranslation(text)) { - // check for icon text 'uiitLabel' - if (text[0] == 'u' && text[1] == 'i' && text[2] == 'i' && text[3] == 't' && CI18N::hasTranslation(text)) - { - // NOTE: translated text is expected to be us-ascii only - text = CI18N::get(text).toUtf8(); - } + // NOTE: translated text is expected to be us-ascii only + text = CI18N::get(text).toUtf8(); } text = toLower(text);