summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexteditor.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-02-12 13:27:03 -0500
committerOz Linden <oz@lindenlab.com>2013-02-12 13:27:03 -0500
commit8bb3d0891dfd87b54cd45dfe199c2f1bf21205b3 (patch)
tree30f038fde12f74908f94be9079cdee759481c5a0 /indra/newview/llviewertexteditor.cpp
parent66c75202a8a99adeb7de443ce5ebe3d834f91c24 (diff)
parente87000ba0750e55d9d6b55feccc4124f5d2b4b74 (diff)
merge up to 3.4.5-release
Diffstat (limited to 'indra/newview/llviewertexteditor.cpp')
-rw-r--r--indra/newview/llviewertexteditor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewertexteditor.cpp b/indra/newview/llviewertexteditor.cpp
index 99102309a1..122d8f4a96 100644
--- a/indra/newview/llviewertexteditor.cpp
+++ b/indra/newview/llviewertexteditor.cpp
@@ -1144,6 +1144,14 @@ void LLViewerTextEditor::openEmbeddedTexture( LLInventoryItem* item, llwchar wc
{
preview->setAuxItem( item );
preview->setNotecardInfo(mNotecardInventoryID, mObjectID);
+ if (preview->hasString("Title"))
+ {
+ LLStringUtil::format_map_t args;
+ args["[NAME]"] = item->getName();
+ LLUIString title = preview->getString("Title", args);
+ preview->setTitle(title.getString());
+ }
+ preview->getChild<LLUICtrl>("desc")->setValue(item->getDescription());
}
}