diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-04 16:45:08 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-04 16:45:08 -0500 |
commit | 78895f9e0c628dc33268578faf135e967cf30142 (patch) | |
tree | 6bca9250bf59591dce7636de42efe3cf293a232f /indra/newview/llfloatermap.cpp | |
parent | 09c7d38166e3f5d04ed6321b2ac06c4112bb858b (diff) | |
parent | 562ed9c4d463ccb96dd4e6b23dff6ad6c845fc96 (diff) |
merge changes for storm-467
Diffstat (limited to 'indra/newview/llfloatermap.cpp')
-rw-r--r-- | indra/newview/llfloatermap.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llfloatermap.cpp b/indra/newview/llfloatermap.cpp index da32467423..1b94d8cbcd 100644 --- a/indra/newview/llfloatermap.cpp +++ b/indra/newview/llfloatermap.cpp @@ -287,7 +287,16 @@ void LLFloaterMap::handleZoom(const LLSD& userdata) std::string level = userdata.asString(); F32 scale = 0.0f; - if (level == std::string("close")) + if (level == std::string("default")) + { + LLControlVariable *pvar = gSavedSettings.getControl("MiniMapScale"); + if(pvar) + { + pvar->resetToDefault(); + scale = gSavedSettings.getF32("MiniMapScale"); + } + } + else if (level == std::string("close")) scale = LLNetMap::MAP_SCALE_MAX; else if (level == std::string("medium")) scale = LLNetMap::MAP_SCALE_MID; |