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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llstylemap.cpp b/indra/newview/llstylemap.cpp
index 0f092b31c4..bff23590d3 100644
--- a/indra/newview/llstylemap.cpp
+++ b/indra/newview/llstylemap.cpp
@@ -73,3 +73,13 @@ const LLStyleSP &LLStyleMap::lookup(const LLUUID &source)
}
return (*this)[source];
}
+
+void LLStyleMap::update()
+{
+ for (style_map_t::iterator iter = begin(); iter != end(); ++iter)
+ {
+ LLStyleSP &style = iter->second;
+ // Update the link color in case it has been changed.
+ style->setColor(gSavedSettings.getColor4("HTMLLinkColor"));
+ }
+}