aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstylemap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-10-17 20:01:38 -0500
committerJacek Antonelli2008-10-17 20:01:38 -0500
commitfdf944fb0355249d73c4e25ee86e9ffd378e7d4b (patch)
tree2e5c51fe0e6d5757f984721e01cc097801d927e7 /linden/indra/newview/llstylemap.cpp
parentRebranded Windows-specific installer/support files. (diff)
parentUpdated source to SL version 1.21.6. (diff)
downloadmeta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.zip
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.gz
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.bz2
meta-impy-fdf944fb0355249d73c4e25ee86e9ffd378e7d4b.tar.xz
Merge branch 'merge-1.21.6' into rebranding
Conflicts: linden/indra/newview/installers/windows/installer_template.nsi linden/indra/newview/llappviewer.cpp
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];