diff -r ef2df52563bb -r 33cbcdbedf5f doc/contributions.txt --- a/doc/contributions.txt Thu Mar 03 23:25:03 2011 -0800 +++ b/doc/contributions.txt Thu Feb 17 20:59:33 2011 -0600 @@ -156,6 +156,7 @@ CT-193 Ardy Lay VWR-19499 + VWR-24917 Argent Stonecutter VWR-68 Armin Weatherwax diff -r ef2df52563bb -r 33cbcdbedf5f indra/llcommon/llavatarname.cpp --- a/indra/llcommon/llavatarname.cpp Thu Mar 03 23:25:03 2011 -0800 +++ b/indra/llcommon/llavatarname.cpp Thu Feb 17 20:59:33 2011 -0600 @@ -90,14 +90,16 @@ std::string LLAvatarName::getCompleteName() const { std::string name; - if (!mUsername.empty()) + if (mUsername.empty() || mIsDisplayNameDefault) + // If the display name feature is off + // OR this particular display name is defaulted (i.e. based on user name), + // then display only the easier to read instance of the person's name. { - name = mDisplayName + " (" + mUsername + ")"; + name = mDisplayName; } else { - // ...display names are off, legacy name is in mDisplayName - name = mDisplayName; + name = mDisplayName + " (" + mUsername + ")"; } return name; }