summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2015-01-06 11:35:32 -0500
committerOz Linden <oz@lindenlab.com>2015-01-06 11:35:32 -0500
commit82a56fb9dac717360aa99ac3ec75314c0a05acd6 (patch)
tree834b72d64d065bcfe4ccb9b2e1433373739106c6 /indra/newview
parent4d4ad1afaf6fb2473e4a1261416e94a144cabce9 (diff)
parentcacaf21eb5657065dc510bf245cf5fddb4f48a19 (diff)
merge changes for STORM-2088
Diffstat (limited to 'indra/newview')
-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;
}