Skip to content
Snippets Groups Projects
Commit cacaf21e authored by Jonathan Yap's avatar Jonathan Yap
Browse files

STORM-2088 Minimap no longer remembers zoom setting between sessions

parent d960676c
No related branches found
No related tags found
No related merge requests found
...@@ -718,6 +718,7 @@ Jonathan Yap ...@@ -718,6 +718,7 @@ Jonathan Yap
STORM-2030 STORM-2030
STORM-2034 STORM-2034
STORM-2018 STORM-2018
STORM-2088
Kadah Coba Kadah Coba
STORM-1060 STORM-1060
STORM-1843 STORM-1843
......
...@@ -97,13 +97,13 @@ LLNetMap::LLNetMap (const Params & p) ...@@ -97,13 +97,13 @@ LLNetMap::LLNetMap (const Params & p)
mToolTipMsg(), mToolTipMsg(),
mPopupMenu(NULL) mPopupMenu(NULL)
{ {
mScale = gSavedSettings.getF32("MiniMapScale");
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS); mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
setScale(gSavedSettings.getF32("MiniMapScale"));
} }
LLNetMap::~LLNetMap() LLNetMap::~LLNetMap()
{ {
gSavedSettings.setF32("MiniMapScale", mScale);
} }
BOOL LLNetMap::postBuild() BOOL LLNetMap::postBuild()
...@@ -138,6 +138,8 @@ void LLNetMap::setScale( F32 scale ) ...@@ -138,6 +138,8 @@ void LLNetMap::setScale( F32 scale )
mPixelsPerMeter = mScale / REGION_WIDTH_METERS; mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS); mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
gSavedSettings.setF32("MiniMapScale", mScale);
mUpdateNow = true; mUpdateNow = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment