Crashfix in chat console and Growl (INT-77)
parent
f31e268d37
commit
d8c7dfd223
|
|
@ -342,7 +342,7 @@ void LLConsole::addConsoleLine(const LLWString& wline, const LLColor4 &color, LL
|
|||
{
|
||||
LLUrlMatch urlMatch;
|
||||
LLWString workLine = wline;
|
||||
while (LLUrlRegistry::instance().findUrl(workLine, urlMatch))
|
||||
while (LLUrlRegistry::instance().findUrl(workLine, urlMatch) && !urlMatch.getUrl().empty())
|
||||
{
|
||||
LLWStringUtil::replaceString(newLine, utf8str_to_wstring(urlMatch.getUrl()), utf8str_to_wstring(urlMatch.getLabel()));
|
||||
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ bool GrowlManager::onLLNotification(const LLSD& notice)
|
|||
LLUrlMatch urlMatch;
|
||||
LLWString newLine = utf8str_to_wstring(body);
|
||||
LLWString workLine = utf8str_to_wstring(body);
|
||||
while (LLUrlRegistry::instance().findUrl(workLine, urlMatch))
|
||||
while (LLUrlRegistry::instance().findUrl(workLine, urlMatch) && !urlMatch.getUrl().empty())
|
||||
{
|
||||
LLWStringUtil::replaceString(newLine, utf8str_to_wstring(urlMatch.getUrl()), utf8str_to_wstring(urlMatch.getLabel()));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue