diff options
Diffstat (limited to 'linden/indra/llui/lltexteditor.cpp')
-rw-r--r-- | linden/indra/llui/lltexteditor.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index 004d063..40dafcd 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp | |||
@@ -4206,10 +4206,10 @@ void LLTextEditor::appendColoredText(const std::string &new_text, | |||
4206 | const std::string& font_name) | 4206 | const std::string& font_name) |
4207 | { | 4207 | { |
4208 | LLColor4 lcolor=color; | 4208 | LLColor4 lcolor=color; |
4209 | // If LindenUserDir is empty then we didn't login yet. | 4209 | // If ViewerUserDir is empty then we didn't login yet. |
4210 | // In that case we can't instantiate LLTextParser, which | 4210 | // In that case we can't instantiate LLTextParser, which |
4211 | // is initialized per user. | 4211 | // is initialized per user. |
4212 | if (mParseHighlights && !gDirUtilp->getLindenUserDir(true).empty()) | 4212 | if (mParseHighlights && !gDirUtilp->getViewerUserDir(true).empty()) |
4213 | { | 4213 | { |
4214 | LLTextParser* highlight = LLTextParser::getInstance(); | 4214 | LLTextParser* highlight = LLTextParser::getInstance(); |
4215 | highlight->parseFullLineHighlights(new_text, &lcolor); | 4215 | highlight->parseFullLineHighlights(new_text, &lcolor); |
@@ -4289,10 +4289,10 @@ void LLTextEditor::appendHighlightedText(const std::string &new_text, | |||
4289 | S32 highlight_part, | 4289 | S32 highlight_part, |
4290 | LLStyleSP stylep) | 4290 | LLStyleSP stylep) |
4291 | { | 4291 | { |
4292 | // If LindenUserDir is empty then we didn't login yet. | 4292 | // If ViewerUserDir is empty then we didn't login yet. |
4293 | // In that case we can't instantiate LLTextParser, which | 4293 | // In that case we can't instantiate LLTextParser, which |
4294 | // is initialized per user. | 4294 | // is initialized per user. |
4295 | if (mParseHighlights && !gDirUtilp->getLindenUserDir(true).empty()) | 4295 | if (mParseHighlights && !gDirUtilp->getViewerUserDir(true).empty()) |
4296 | { | 4296 | { |
4297 | LLTextParser* highlight = LLTextParser::getInstance(); | 4297 | LLTextParser* highlight = LLTextParser::getInstance(); |
4298 | 4298 | ||
@@ -4760,20 +4760,20 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length ) | |||
4760 | instream.getline(tbuf, MAX_STRING); | 4760 | instream.getline(tbuf, MAX_STRING); |
4761 | if( 1 != sscanf(tbuf, "Linden text version %d", &version) ) | 4761 | if( 1 != sscanf(tbuf, "Linden text version %d", &version) ) |
4762 | { | 4762 | { |
4763 | llwarns << "Invalid Linden text file header " << llendl; | 4763 | llwarns << "Invalid Notecard text file header " << llendl; |
4764 | return FALSE; | 4764 | return FALSE; |
4765 | } | 4765 | } |
4766 | 4766 | ||
4767 | if( 1 != version ) | 4767 | if( 1 != version ) |
4768 | { | 4768 | { |
4769 | llwarns << "Invalid Linden text file version: " << version << llendl; | 4769 | llwarns << "Invalid Notecard text file version: " << version << llendl; |
4770 | return FALSE; | 4770 | return FALSE; |
4771 | } | 4771 | } |
4772 | 4772 | ||
4773 | instream.getline(tbuf, MAX_STRING); | 4773 | instream.getline(tbuf, MAX_STRING); |
4774 | if( 0 != sscanf(tbuf, "{") ) | 4774 | if( 0 != sscanf(tbuf, "{") ) |
4775 | { | 4775 | { |
4776 | llwarns << "Invalid Linden text file format" << llendl; | 4776 | llwarns << "Invalid Notecard text file format" << llendl; |
4777 | return FALSE; | 4777 | return FALSE; |
4778 | } | 4778 | } |
4779 | 4779 | ||
@@ -4781,13 +4781,13 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length ) | |||
4781 | instream.getline(tbuf, MAX_STRING); | 4781 | instream.getline(tbuf, MAX_STRING); |
4782 | if( 1 != sscanf(tbuf, "Text length %d", &text_len) ) | 4782 | if( 1 != sscanf(tbuf, "Text length %d", &text_len) ) |
4783 | { | 4783 | { |
4784 | llwarns << "Invalid Linden text length field" << llendl; | 4784 | llwarns << "Invalid Notecard text length field" << llendl; |
4785 | return FALSE; | 4785 | return FALSE; |
4786 | } | 4786 | } |
4787 | 4787 | ||
4788 | if( text_len > mMaxTextByteLength ) | 4788 | if( text_len > mMaxTextByteLength ) |
4789 | { | 4789 | { |
4790 | llwarns << "Invalid Linden text length: " << text_len << llendl; | 4790 | llwarns << "Invalid Notecard text length: " << text_len << llendl; |
4791 | return FALSE; | 4791 | return FALSE; |
4792 | } | 4792 | } |
4793 | 4793 | ||
@@ -4810,7 +4810,7 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length ) | |||
4810 | instream.getline(tbuf, MAX_STRING); | 4810 | instream.getline(tbuf, MAX_STRING); |
4811 | if( success && (0 != sscanf(tbuf, "}")) ) | 4811 | if( success && (0 != sscanf(tbuf, "}")) ) |
4812 | { | 4812 | { |
4813 | llwarns << "Invalid Linden text file format: missing terminal }" << llendl; | 4813 | llwarns << "Invalid Notecard text file format: missing terminal }" << llendl; |
4814 | success = FALSE; | 4814 | success = FALSE; |
4815 | } | 4815 | } |
4816 | 4816 | ||