Fix the issue with profile font and selection

Thanks for testing, Router!
This commit is contained in:
Lirusaito
2019-01-16 14:32:31 -05:00
parent c419c4d560
commit 1dea1123de

View File

@@ -657,7 +657,7 @@ void LLTextEditor::setText(const LLStringExplicit &utf8str)
//LLStringUtil::removeCRLF(text);
// appendText modifies mCursorPos...
LLStyleSP style(new LLStyle(TRUE, mReadOnly ? mReadOnlyFgColor : mFgColor, LLFontGL::nameFromFont(mGLFont)));
LLStyleSP style(new LLStyle(TRUE, mReadOnly ? mReadOnlyFgColor : mFgColor, LLStringUtil::null));
appendText(utf8str, false, false, style);
// ...so move cursor to top after appending text
setCursorPos(0);