summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <jhwelch@gmail.com>2014-12-05 09:46:07 -0500
committerJonathan Yap <jhwelch@gmail.com>2014-12-05 09:46:07 -0500
commitcacaf21eb5657065dc510bf245cf5fddb4f48a19 (patch)
tree7ae6b9a74aac35601400ab9fbc1d43c8331c1d2b /indra
parentd960676c5af26b299166bdd74744a7f513b45541 (diff)
STORM-2088 Minimap no longer remembers zoom setting between sessions
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llnetmap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp
index 1685a18e26..fbd9b127b6 100755
--- a/indra/newview/llnetmap.cpp
+++ b/indra/newview/llnetmap.cpp
@@ -97,13 +97,13 @@ LLNetMap::LLNetMap (const Params & p)
mToolTipMsg(),
mPopupMenu(NULL)
{
+ mScale = gSavedSettings.getF32("MiniMapScale");
+ mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
- setScale(gSavedSettings.getF32("MiniMapScale"));
}
LLNetMap::~LLNetMap()
{
- gSavedSettings.setF32("MiniMapScale", mScale);
}
BOOL LLNetMap::postBuild()
@@ -138,6 +138,8 @@ void LLNetMap::setScale( F32 scale )
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
+ gSavedSettings.setF32("MiniMapScale", mScale);
+
mUpdateNow = true;
}