diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp index b014127e9..ec1a9660f 100644 --- a/indra/llxml/llcontrol.cpp +++ b/indra/llxml/llcontrol.cpp @@ -303,11 +303,8 @@ LLPointer LLControlGroup::getControl(const std::string& name) gSettingsCallMap.push_back(std::pair(name.c_str(),1)); } #endif //PROF_CTRL_CALLS - //return iter == mNameTable.end() ? LLPointer() : iter->second; - - LLControlVariable *pFoundVar = (iter != mNameTable.end()) ? iter->second : (LLPointer) NULL; - if(pFoundVar) - return pFoundVar->getCOAActive(); + if(iter != mNameTable.end()) + return iter->second->getCOAActive(); else return LLPointer(); } @@ -1097,6 +1094,7 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v { if(mIncludedFiles.find(filename) != mIncludedFiles.end()) return 0; //Already included this file. + mIncludedFiles.insert(filename); std::string name; LLSD settings; diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h index 5298a93eb..76dfa47ff 100644 --- a/indra/llxml/llcontrol.h +++ b/indra/llxml/llcontrol.h @@ -400,7 +400,8 @@ private: template <> inline void LLCachedControl::setValue(const LLSD& newvalue) { if(this->mControl->isType(TYPE_COL4U)) - this->mCachedValue.set(LLColor4U(newvalue)); //a color4u LLSD cannot be auto-converted to color4.. so do it manually. + //a color4u LLSD cannot be auto-converted to color4.. so do it manually. + this->mCachedValue.set(LLColor4U(newvalue)); else this->mCachedValue = (const LLColor4 &)newvalue; } diff --git a/indra/newview/app_settings/settings_ascent.xml b/indra/newview/app_settings/settings_ascent.xml index 6e5a54a15..277f84b8d 100644 --- a/indra/newview/app_settings/settings_ascent.xml +++ b/indra/newview/app_settings/settings_ascent.xml @@ -166,7 +166,7 @@ Type Boolean Value - 0 + 0 AscentUseStatusColors @@ -177,7 +177,7 @@ Type Boolean Value - 0 + 0 AscentAvatarXModifier