Fix emoji categories being empty outside English locale

master
Ansariel 2024-01-23 00:06:16 +01:00
parent ffeff0a28a
commit c10f22905c
1 changed files with 2 additions and 4 deletions

View File

@ -551,10 +551,9 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize)
for (const LLEmojiGroup& group : groups)
{
// List all categories in group
for (std::string category : group.Categories) // <FS:Ansariel> Filter not working properly
for (const std::string& category : group.Categories)
{
// List all emojis in category
LLStringUtil::toLower(category); // <FS:Ansariel> Filter not working properly
const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category);
if (item != category2Descr.end())
{
@ -566,10 +565,9 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize)
else
{
// List all categories in the selected group
for (std::string category : groups[sSelectedGroupIndex].Categories) // <FS:Ansariel> Filter not working properly
for (const std::string& category : groups[sSelectedGroupIndex].Categories)
{
// List all emojis in category
LLStringUtil::toLower(category); // <FS:Ansariel> Filter not working properly
const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category);
if (item != category2Descr.end())
{