From 37839ff247a488fd291de209776187256e3cb3e2 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Tue, 9 Jul 2019 22:04:46 -0500 Subject: [PATCH] Fix broken 'create new outfit' checkboxes. Not sure when this broke.. (The checkboxes are wrongly lower-cased. Hack around it in code instead of breaking translations...) --- indra/newview/llmakeoutfitdialog.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/indra/newview/llmakeoutfitdialog.cpp b/indra/newview/llmakeoutfitdialog.cpp index d01860947..f029210b9 100644 --- a/indra/newview/llmakeoutfitdialog.cpp +++ b/indra/newview/llmakeoutfitdialog.cpp @@ -52,7 +52,15 @@ LLMakeOutfitDialog::LLMakeOutfitDialog(bool modal) : LLModalDialog(LLStringUtil: // Build list of check boxes for (S32 i = 0; i < LLWearableType::WT_COUNT; i++) { - std::string name = std::string("checkbox_") + LLWearableType::getTypeLabel((LLWearableType::EType)i); + std::string label = LLWearableType::getTypeLabel((LLWearableType::EType)i); + std::string name = std::string("checkbox_") + label; + std::string labellower = label; + labellower[0] = tolower(labellower[0]); + std::string namelower = std::string("checkbox_") + labellower; + if (findChild(namelower)) + { + name = namelower; + } mCheckBoxList.push_back(std::make_pair(name, i)); // Hide undergarments from teens if (gAgent.isTeen() && ((LLWearableType::WT_UNDERSHIRT == (LLWearableType::EType)i) || (LLWearableType::WT_UNDERPANTS == (LLWearableType::EType)i)))