summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorDmitry Zaporozhan <dzaporozhan@productengine.com>2010-01-18 13:18:46 +0200
committerDmitry Zaporozhan <dzaporozhan@productengine.com>2010-01-18 13:18:46 +0200
commit5c4ab75cdab1b9de08d482457f9d245dd18b90da (patch)
tree91c40baea1fc89df4b762a265dc397efd8e0e97c /indra/newview/llviewerinventory.cpp
parentb2379c90486c6a9be5ffb97d6c5d5d6791a9ff6e (diff)
Fixed low bug EXT-4306 - Landmark name is shown with prefix in the group notice attachment.
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r--indra/newview/llviewerinventory.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 3bed2d36c2..31dc83e75a 100644
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1165,6 +1165,15 @@ const std::string& LLViewerInventoryItem::getDisplayName() const
return mDisplayName = hasSortField ? result : LLInventoryItem::getName();
}
+// static
+std::string LLViewerInventoryItem::getDisplayName(const std::string& name)
+{
+ std::string result;
+ BOOL hasSortField = extractSortFieldAndDisplayName(name, 0, &result);
+
+ return hasSortField ? result : name;
+}
+
S32 LLViewerInventoryItem::getSortField() const
{
S32 result;