aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstylemap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-28 17:21:23 -0500
committerJacek Antonelli2008-09-28 17:21:46 -0500
commit31e7c77a411d94bc87f0232588b339149bb29a49 (patch)
tree49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/newview/llstylemap.cpp
parentSecond Life viewer sources 1.21.2-RC (diff)
downloadmeta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2
meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/newview/llstylemap.cpp')
-rw-r--r--linden/indra/newview/llstylemap.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/newview/llstylemap.cpp b/linden/indra/newview/llstylemap.cpp
index 365de2f..89fa3cd 100644
--- a/linden/indra/newview/llstylemap.cpp
+++ b/linden/indra/newview/llstylemap.cpp
@@ -61,14 +61,17 @@ const LLStyleSP &LLStyleMap::lookup(const LLUUID &source)
61 LLStyleSP style(new LLStyle); 61 LLStyleSP style(new LLStyle);
62 style->setVisible(true); 62 style->setVisible(true);
63 style->setFontName(LLStringUtil::null); 63 style->setFontName(LLStringUtil::null);
64 if (source != LLUUID::null) 64 if (source != LLUUID::null && source != gAgent.getID() )
65 { 65 {
66 style->setColor(gSavedSettings.getColor4("HTMLLinkColor")); 66 style->setColor(gSavedSettings.getColor4("HTMLLinkColor"));
67 std::string link = llformat("secondlife:///app/agent/%s/about",source.asString().c_str()); 67 std::string link = llformat("secondlife:///app/agent/%s/about",source.asString().c_str());
68 style->setLinkHREF(link); 68 style->setLinkHREF(link);
69 } 69 }
70 else 70 else
71 {
72 // Make the resident's own name white and don't make the name clickable.
71 style->setColor(LLColor4::white); 73 style->setColor(LLColor4::white);
74 }
72 (*this)[source] = style; 75 (*this)[source] = style;
73 } 76 }
74 return (*this)[source]; 77 return (*this)[source];