aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/lltexteditor.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp
index 5bddcbc..28859b1 100644
--- a/linden/indra/llui/lltexteditor.cpp
+++ b/linden/indra/llui/lltexteditor.cpp
@@ -4246,10 +4246,10 @@ void LLTextEditor::appendColoredText(const std::string &new_text,
4246 const std::string& font_name) 4246 const std::string& font_name)
4247{ 4247{
4248 LLColor4 lcolor=color; 4248 LLColor4 lcolor=color;
4249 // If LindenUserDir is empty then we didn't login yet. 4249 // If ViewerUserDir is empty then we didn't login yet.
4250 // In that case we can't instantiate LLTextParser, which 4250 // In that case we can't instantiate LLTextParser, which
4251 // is initialized per user. 4251 // is initialized per user.
4252 if (mParseHighlights && !gDirUtilp->getLindenUserDir(true).empty()) 4252 if (mParseHighlights && !gDirUtilp->getViewerUserDir(true).empty())
4253 { 4253 {
4254 LLTextParser* highlight = LLTextParser::getInstance(); 4254 LLTextParser* highlight = LLTextParser::getInstance();
4255 highlight->parseFullLineHighlights(new_text, &lcolor); 4255 highlight->parseFullLineHighlights(new_text, &lcolor);
@@ -4329,10 +4329,10 @@ void LLTextEditor::appendHighlightedText(const std::string &new_text,
4329 S32 highlight_part, 4329 S32 highlight_part,
4330 LLStyleSP stylep) 4330 LLStyleSP stylep)
4331{ 4331{
4332 // If LindenUserDir is empty then we didn't login yet. 4332 // If ViewerUserDir is empty then we didn't login yet.
4333 // In that case we can't instantiate LLTextParser, which 4333 // In that case we can't instantiate LLTextParser, which
4334 // is initialized per user. 4334 // is initialized per user.
4335 if (mParseHighlights && !gDirUtilp->getLindenUserDir(true).empty()) 4335 if (mParseHighlights && !gDirUtilp->getViewerUserDir(true).empty())
4336 { 4336 {
4337 LLTextParser* highlight = LLTextParser::getInstance(); 4337 LLTextParser* highlight = LLTextParser::getInstance();
4338 4338
@@ -4800,20 +4800,20 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length )
4800 instream.getline(tbuf, MAX_STRING); 4800 instream.getline(tbuf, MAX_STRING);
4801 if( 1 != sscanf(tbuf, "Linden text version %d", &version) ) 4801 if( 1 != sscanf(tbuf, "Linden text version %d", &version) )
4802 { 4802 {
4803 llwarns << "Invalid Linden text file header " << llendl; 4803 llwarns << "Invalid Notecard text file header " << llendl;
4804 return FALSE; 4804 return FALSE;
4805 } 4805 }
4806 4806
4807 if( 1 != version ) 4807 if( 1 != version )
4808 { 4808 {
4809 llwarns << "Invalid Linden text file version: " << version << llendl; 4809 llwarns << "Invalid Notecard text file version: " << version << llendl;
4810 return FALSE; 4810 return FALSE;
4811 } 4811 }
4812 4812
4813 instream.getline(tbuf, MAX_STRING); 4813 instream.getline(tbuf, MAX_STRING);
4814 if( 0 != sscanf(tbuf, "{") ) 4814 if( 0 != sscanf(tbuf, "{") )
4815 { 4815 {
4816 llwarns << "Invalid Linden text file format" << llendl; 4816 llwarns << "Invalid Notecard text file format" << llendl;
4817 return FALSE; 4817 return FALSE;
4818 } 4818 }
4819 4819
@@ -4821,13 +4821,13 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length )
4821 instream.getline(tbuf, MAX_STRING); 4821 instream.getline(tbuf, MAX_STRING);
4822 if( 1 != sscanf(tbuf, "Text length %d", &text_len) ) 4822 if( 1 != sscanf(tbuf, "Text length %d", &text_len) )
4823 { 4823 {
4824 llwarns << "Invalid Linden text length field" << llendl; 4824 llwarns << "Invalid Notecard text length field" << llendl;
4825 return FALSE; 4825 return FALSE;
4826 } 4826 }
4827 4827
4828 if( text_len > mMaxTextByteLength ) 4828 if( text_len > mMaxTextByteLength )
4829 { 4829 {
4830 llwarns << "Invalid Linden text length: " << text_len << llendl; 4830 llwarns << "Invalid Notecard text length: " << text_len << llendl;
4831 return FALSE; 4831 return FALSE;
4832 } 4832 }
4833 4833
@@ -4850,7 +4850,7 @@ BOOL LLTextEditor::importBuffer(const char* buffer, S32 length )
4850 instream.getline(tbuf, MAX_STRING); 4850 instream.getline(tbuf, MAX_STRING);
4851 if( success && (0 != sscanf(tbuf, "}")) ) 4851 if( success && (0 != sscanf(tbuf, "}")) )
4852 { 4852 {
4853 llwarns << "Invalid Linden text file format: missing terminal }" << llendl; 4853 llwarns << "Invalid Notecard text file format: missing terminal }" << llendl;
4854 success = FALSE; 4854 success = FALSE;
4855 } 4855 }
4856 4856