aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelpick.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llpanelpick.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llpanelpick.cpp')
-rw-r--r--linden/indra/newview/llpanelpick.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelpick.cpp b/linden/indra/newview/llpanelpick.cpp
index 9dc0aea..cd25131 100644
--- a/linden/indra/newview/llpanelpick.cpp
+++ b/linden/indra/newview/llpanelpick.cpp
@@ -2,6 +2,8 @@
2 * @file llpanelpick.cpp 2 * @file llpanelpick.cpp
3 * @brief LLPanelPick class implementation 3 * @brief LLPanelPick class implementation
4 * 4 *
5 * $LicenseInfo:firstyear=2004&license=viewergpl$
6 *
5 * Copyright (c) 2004-2007, Linden Research, Inc. 7 * Copyright (c) 2004-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29// Display of a "Top Pick" used both for the global top picks in the 32// Display of a "Top Pick" used both for the global top picks in the
@@ -324,8 +327,7 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
324 S32 region_y = llround((F32)pos_global.mdV[VY]) % REGION_WIDTH_UNITS; 327 S32 region_y = llround((F32)pos_global.mdV[VY]) % REGION_WIDTH_UNITS;
325 S32 region_z = llround((F32)pos_global.mdV[VZ]); 328 S32 region_z = llround((F32)pos_global.mdV[VZ]);
326 329
327 snprintf(buffer, sizeof(buffer), "%s (%d, %d, %d)", sim_name, region_x, region_y, region_z); /* Flawfinder: ignore */ 330 location_text.append(llformat("%s (%d, %d, %d)", sim_name, region_x, region_y, region_z));
328 location_text.append(buffer);
329 331
330 S32 sort_order; 332 S32 sort_order;
331 msg->getS32("Data", "SortOrder", sort_order); 333 msg->getS32("Data", "SortOrder", sort_order);
@@ -353,14 +355,13 @@ void LLPanelPick::processPickInfoReply(LLMessageSystem *msg, void **)
353 self->mPosGlobal = pos_global; 355 self->mPosGlobal = pos_global;
354 356
355 // Update UI controls 357 // Update UI controls
356 self->mNameEditor->setText(name); 358 self->mNameEditor->setText(LLString(name));
357 self->mDescEditor->setText(desc); 359 self->mDescEditor->setText(LLString(desc));
358 self->mSnapshotCtrl->setImageAssetID(snapshot_id); 360 self->mSnapshotCtrl->setImageAssetID(snapshot_id);
359 self->mLocationEditor->setText(location_text); 361 self->mLocationEditor->setText(location_text);
360 self->mEnabledCheck->set(enabled); 362 self->mEnabledCheck->set(enabled);
361 363
362 snprintf(buffer, sizeof(buffer), "%d", sort_order); /* Flawfinder: ignore */ 364 self->mSortOrderEditor->setText(llformat("%d", sort_order));
363 self->mSortOrderEditor->setText(buffer);
364 } 365 }
365} 366}
366 367