diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index c4e9292d90b77e0fd15d4cd872261d8f6203c183..3a0abc919fe82434b13c04a2bb5501fada1e783f 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -2521,7 +2521,7 @@ void LLPanelPreferenceGraphics::setPresetText() { if (preset_graphic_active == PRESETS_DEFAULT) { - preset_graphic_active = LLTrans::getString("Default"); + preset_graphic_active = LLTrans::getString(PRESETS_DEFAULT); } preset_text->setText(preset_graphic_active); } diff --git a/indra/newview/llpanelpresetspulldown.cpp b/indra/newview/llpanelpresetspulldown.cpp index 70f5fcd2c06778e2f682db1f0934e3ea75b012a6..9b4dc5474a08e644ed0121935862e91ebb848958 100644 --- a/indra/newview/llpanelpresetspulldown.cpp +++ b/indra/newview/llpanelpresetspulldown.cpp @@ -38,6 +38,7 @@ #include "llpresetsmanager.h" #include "llsliderctrl.h" #include "llscrolllistctrl.h" +#include "lltrans.h" /* static */ const F32 LLPanelPresetsPulldown::sAutoCloseFadeStartTimeSec = 2.0f; /* static */ const F32 LLPanelPresetsPulldown::sAutoCloseTotalTimeSec = 3.0f; @@ -80,6 +81,12 @@ void LLPanelPresetsPulldown::populatePanel() { scroll->clearRows(); + std::string active_preset = gSavedSettings.getString("PresetGraphicActive"); + if (active_preset == PRESETS_DEFAULT) + { + active_preset = LLTrans::getString(PRESETS_DEFAULT); + } + for (std::list<std::string>::const_iterator it = mPresetNames.begin(); it != mPresetNames.end(); ++it) { const std::string& name = *it; @@ -90,7 +97,7 @@ void LLPanelPresetsPulldown::populatePanel() row["columns"][0]["value"] = name; bool is_selected_preset = false; - if (name == gSavedSettings.getString("PresetGraphicActive")) + if (name == active_preset) { row["columns"][1]["column"] = "icon"; row["columns"][1]["type"] = "icon";