Fix link replacement being enforced improperly, thanks Beware!

This commit is contained in:
Lirusaito
2019-04-21 22:06:33 -04:00
parent 0464e611c7
commit 190e3e8c2f

View File

@@ -4274,7 +4274,7 @@ void LLTextEditor::appendText(const std::string &new_text, bool allow_undo, bool
return;
std::string text = prepend_newline && !mWText.empty() ? ('\n' + new_text) : new_text;
appendTextImpl(text, style);
appendTextImpl(text, style, force_replace_links);
if (!allow_undo)
{
@@ -4340,7 +4340,7 @@ void LLTextEditor::appendTextImpl(const std::string &new_text, const LLStyleSP s
auto url = match.getUrl();
const auto& label = match.getLabel();
if (force_replace_links || replace_links || url == label)
if (force_replace_links || url == label)
{
// add icon before url if need
/* Singu TODO: Icons next to links?