From bf176ffd4dccb48e799163f8fad9f6a3f78e003c Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Sat, 11 May 2019 22:49:56 -0400 Subject: [PATCH] Prevent the texteditor from parsing highlights when it shouldn't --- indra/llui/lltexteditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index f58c334e5..b9a3b73ca 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -293,6 +293,8 @@ LLTextEditor::LLTextEditor( mMouseDownY(0), mLastSelectionX(-1), mLastSelectionY(-1), + mParseHTML(parse_html), + mParseHighlights(false), mLastContextMenuX(-1), mLastContextMenuY(-1), mReflowNeeded(FALSE), @@ -343,7 +345,6 @@ LLTextEditor::LLTextEditor( mBorder = new LLViewBorder(std::string("text ed border"), LLRect(0, getRect().getHeight(), getRect().getWidth(), 0), LLViewBorder::BEVEL_IN, LLViewBorder::STYLE_LINE, UI_TEXTEDITOR_BORDER); addChild(mBorder); - mParseHTML = parse_html; appendText(default_text, FALSE, FALSE); resetDirty(); // Update saved text state