diff options
| author | Richard Linden <none@none> | 2012-01-23 17:50:15 -0800 |
|---|---|---|
| committer | Richard Linden <none@none> | 2012-01-23 17:50:15 -0800 |
| commit | ff5fe4ffc06fa9220043d82a2d7d7dbc0b7ffd77 (patch) | |
| tree | f6b31777ceb1a66c81aa7322687a9068fbd6a3b9 /indra/llcommon | |
| parent | ea6cbc7b6b1de051a9bb1c311c4399a2b4d42cb3 (diff) | |
| parent | e09661f6ec467ea98715a2a04db40fc4e6b7ce02 (diff) | |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience-merge
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/llavatarname.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llavatarname.cpp b/indra/llcommon/llavatarname.cpp index ba3dd6d6b4..3206843bf4 100644 --- a/indra/llcommon/llavatarname.cpp +++ b/indra/llcommon/llavatarname.cpp @@ -106,6 +106,11 @@ std::string LLAvatarName::getCompleteName() const std::string LLAvatarName::getLegacyName() const { + if (mLegacyFirstName.empty() && mLegacyLastName.empty()) // display names disabled? + { + return mDisplayName; + } + std::string name; name.reserve( mLegacyFirstName.size() + 1 + mLegacyLastName.size() ); name = mLegacyFirstName; |
