aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterworldmap.cpp')
-rw-r--r--linden/indra/newview/llfloaterworldmap.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp
index ccd252b..237563f 100644
--- a/linden/indra/newview/llfloaterworldmap.cpp
+++ b/linden/indra/newview/llfloaterworldmap.cpp
@@ -1242,6 +1242,14 @@ void LLFloaterWorldMap::onLocationCommit( void* userdata )
1242 1242
1243 LLString str = self->childGetValue("location").asString(); 1243 LLString str = self->childGetValue("location").asString();
1244 1244
1245 // Trim any leading and trailing spaces in the search target
1246 LLString saved_str = str;
1247 LLString::trim( str );
1248 if ( str != saved_str )
1249 { // Set the value in the UI if any spaces were removed
1250 self->childSetValue("location", str);
1251 }
1252
1245 LLString::toLower(str); 1253 LLString::toLower(str);
1246 gFloaterWorldMap->mCompletingRegionName = str; 1254 gFloaterWorldMap->mCompletingRegionName = str;
1247 gWorldMap->mIsTrackingCommit = TRUE; 1255 gWorldMap->mIsTrackingCommit = TRUE;