EXP-1953: Altering the behavior of building an LLTextBase such that icons are appended in place rather than prepended out of context.

master
Todd Stinson 2012-06-12 16:58:59 -07:00
parent 10967ef859
commit 32063b5999
1 changed files with 2 additions and 3 deletions

View File

@ -1699,9 +1699,6 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
while ( LLUrlRegistry::instance().findUrl(text, match,
boost::bind(&LLTextBase::replaceUrl, this, _1, _2, _3)) )
{
LLTextUtil::processUrlMatch(&match,this);
start = match.getStart();
end = match.getEnd()+1;
@ -1737,6 +1734,8 @@ void LLTextBase::appendTextImpl(const std::string &new_text, const LLStyle::Para
}
}
LLTextUtil::processUrlMatch(&match,this);
// move on to the rest of the text after the Url
if (end < (S32)text.length())
{