summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-08-25 17:08:42 +0300
committerVadim Savchuk <vsavchuk@productengine.com>2010-08-25 17:08:42 +0300
commit8e56f063924601041bac3791e794fa6934f20936 (patch)
tree698b4831d79b67fc7d9344461b34327efde47688 /indra
parenta412c2f747495a36c088d7fafee8044338ff4ff1 (diff)
parent6fcde580c3a2e6cc62bfab52bd47cae8726c56d4 (diff)
Merge from default branch
--HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltextbase.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 60c313b6ce..b95596fa70 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1611,9 +1611,6 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
while ( LLUrlRegistry::instance().findUrl(text, match,
boost::bind(&LLTextBase::replaceUrlLabel, this, _1, _2)) )
{
-
- LLTextUtil::processUrlMatch(&match,this);
-
start = match.getStart();
end = match.getEnd()+1;
@@ -1638,6 +1635,10 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
std::string subtext=text.substr(0,start);
appendAndHighlightText(subtext, part, style_params);
}
+
+ // inserts an avatar icon preceding the Url if appropriate
+ LLTextUtil::processUrlMatch(&match,this);
+
// output the styled Url (unless we've been asked to suppress hyperlinking)
if (match.isLinkDisabled())
{