From cf8a16366ab764ceb02bfe013a40f731812e727c Mon Sep 17 00:00:00 2001 From: callum Date: Thu, 6 Jan 2011 13:41:04 -0800 Subject: SOCIAL-423 FIX Display name and username are wrong in My Profile tab --- indra/newview/llpanelavatar.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'indra/newview/llpanelavatar.cpp') diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index 54e1fd8fbf..94b2340c93 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -628,7 +628,18 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g void LLPanelAvatarProfile::got_full_name_callback( const LLUUID& id, const std::string& full_name, bool is_group ) { LLStringUtil::format_map_t args; - args["[NAME]"] = full_name; + + std::string name; + if (LLAvatarNameCache::useDisplayNames()) + { + name = LLCacheName::buildUsername(full_name); + } + else + { + name = full_name; + } + + args["[NAME]"] = name; std::string linden_name = getString("name_text_args", args); getChild("name_descr_text")->setValue(linden_name); -- cgit v1.2.3