STORM-467 Fix for minimap zoom does not persist to the next session

meow-7.2.2
Jonathan Yap 2010-12-18 16:44:51 -05:00
parent 452d9d5e3d
commit 09c7d38166
3 changed files with 3 additions and 2 deletions

View File

@ -735,6 +735,7 @@ Tue Torok
CT-74
Twisted Laws
SNOW-352
STORM-467
Vadim Bigbear
VWR-2681
Vector Hastings

View File

@ -83,7 +83,6 @@ LLFloaterMap::~LLFloaterMap()
BOOL LLFloaterMap::postBuild()
{
mMap = getChild<LLNetMap>("Net Map");
mMap->setScale(gSavedSettings.getF32("MiniMapScale"));
mMap->setToolTipMsg(getString("ToolTipMsg"));
sendChildToBack(mMap);
@ -296,7 +295,6 @@ void LLFloaterMap::handleZoom(const LLSD& userdata)
scale = LLNetMap::MAP_SCALE_MIN;
if (scale != 0.0f)
{
gSavedSettings.setF32("MiniMapScale", scale );
mMap->setScale(scale);
}
}

View File

@ -94,10 +94,12 @@ LLNetMap::LLNetMap (const Params & p)
mToolTipMsg()
{
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
setScale(gSavedSettings.getF32("MiniMapScale"));
}
LLNetMap::~LLNetMap()
{
gSavedSettings.setF32("MiniMapScale", mScale);
}
void LLNetMap::setScale( F32 scale )