summaryrefslogtreecommitdiff
path: root/indra/newview/llstylemap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llstylemap.cpp')
-rw-r--r--indra/newview/llstylemap.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llstylemap.cpp b/indra/newview/llstylemap.cpp
index b3d7dddde8..8fab3bb361 100644
--- a/indra/newview/llstylemap.cpp
+++ b/indra/newview/llstylemap.cpp
@@ -46,12 +46,20 @@ const LLStyle::Params &LLStyleMap::lookupAgent(const LLUUID &source)
if (mMap.find(source) == mMap.end())
{
LLStyle::Params style_params;
- if (source != LLUUID::null)
+ if (source != LLUUID::null && source != gAgent.getID() )
{
style_params.color.control = "HTMLLinkColor";
style_params.readonly_color.control = "HTMLLinkColor";
- style_params.link_href = LLSLURL("agent", source, "inspect").getSLURLString();
+ style_params.link_href =
+ LLSLURL("agent", source, "inspect").getSLURLString();
}
+ else
+ {
+ // Make the resident's own name white and don't make the name clickable.
+ style_params.color = LLColor4::white;
+ style_params.readonly_color = LLColor4::white;
+ }
+
mMap[source] = style_params;
}
return mMap[source];