diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-12-20 18:46:41 +0200 |
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-12-20 18:46:41 +0200 |
| commit | dedaabe9ec74cdeb3d1ecc83fcd597696116d524 (patch) | |
| tree | d051e8b507cd7b2ec7a219fe54492be35efcd97a /indra/newview/llworldmapview.cpp | |
| parent | cdc23f48159410ee859eac7415c91cadeef849ef (diff) | |
MAINT-1251 Fixed Search Error when Double Clicking on Sales Tags in WorldMap
Diffstat (limited to 'indra/newview/llworldmapview.cpp')
| -rw-r--r-- | indra/newview/llworldmapview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llworldmapview.cpp b/indra/newview/llworldmapview.cpp index 62fad32246..9ae788a409 100644 --- a/indra/newview/llworldmapview.cpp +++ b/indra/newview/llworldmapview.cpp @@ -1750,8 +1750,10 @@ BOOL LLWorldMapView::handleDoubleClick( S32 x, S32 y, MASK mask ) case MAP_ITEM_LAND_FOR_SALE: case MAP_ITEM_LAND_FOR_SALE_ADULT: { + LLVector3d pos_global = viewPosToGlobal(x, y); + LLSimInfo* info = LLWorldMap::getInstance()->simInfoFromPosGlobal(pos_global); LLFloaterReg::hideInstance("world_map"); - LLFloaterReg::showInstance("search", LLSD().with("category", "destinations").with("query", id)); + LLFloaterReg::showInstance("search", LLSD().with("category", "land").with("query", info->getName())); break; } case MAP_ITEM_CLASSIFIED: |
