diff options
author | McCabe Maxsted | 2009-09-11 00:33:33 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-11 00:33:33 -0700 |
commit | efa0d701845542e9ef555260fe6d2ad0beeb0760 (patch) | |
tree | 4527fe04a062d3353e4d1a77c547d1c2b1d475e9 /linden/indra/llui/lltexteditor.cpp | |
parent | Fixed missing 'm' for draw distance slider (diff) | |
download | meta-impy-efa0d701845542e9ef555260fe6d2ad0beeb0760.zip meta-impy-efa0d701845542e9ef555260fe6d2ad0beeb0760.tar.gz meta-impy-efa0d701845542e9ef555260fe6d2ad0beeb0760.tar.bz2 meta-impy-efa0d701845542e9ef555260fe6d2ad0beeb0760.tar.xz |
Backported clickable object names from 1.23
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lltexteditor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index 95cce60..8fa253a 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp | |||
@@ -3605,13 +3605,13 @@ void LLTextEditor::appendColoredText(const std::string &new_text, | |||
3605 | style->setVisible(true); | 3605 | style->setVisible(true); |
3606 | style->setColor(color); | 3606 | style->setColor(color); |
3607 | style->setFontName(font_name); | 3607 | style->setFontName(font_name); |
3608 | appendStyledText(new_text, allow_undo, prepend_newline, &style); | 3608 | appendStyledText(new_text, allow_undo, prepend_newline, style); |
3609 | } | 3609 | } |
3610 | 3610 | ||
3611 | void LLTextEditor::appendStyledText(const std::string &new_text, | 3611 | void LLTextEditor::appendStyledText(const std::string &new_text, |
3612 | bool allow_undo, | 3612 | bool allow_undo, |
3613 | bool prepend_newline, | 3613 | bool prepend_newline, |
3614 | const LLStyleSP *stylep) | 3614 | const LLStyleSP stylep) |
3615 | { | 3615 | { |
3616 | if(mParseHTML) | 3616 | if(mParseHTML) |
3617 | { | 3617 | { |
@@ -3626,14 +3626,14 @@ void LLTextEditor::appendStyledText(const std::string &new_text, | |||
3626 | html->setColor(mLinkColor); | 3626 | html->setColor(mLinkColor); |
3627 | if (stylep) | 3627 | if (stylep) |
3628 | { | 3628 | { |
3629 | html->setFontName((*stylep)->getFontString()); | 3629 | html->setFontName(stylep->getFontString()); |
3630 | } | 3630 | } |
3631 | html->mUnderline = TRUE; | 3631 | html->mUnderline = TRUE; |
3632 | 3632 | ||
3633 | if (start > 0) appendText(text.substr(0,start),allow_undo, prepend_newline, stylep); | 3633 | if (start > 0) appendText(text.substr(0,start),allow_undo, prepend_newline, stylep); |
3634 | html->setLinkHREF(text.substr(start,end-start)); | 3634 | html->setLinkHREF(text.substr(start,end-start)); |
3635 | appendText(text.substr(start, end-start),allow_undo, prepend_newline, &html); | 3635 | appendText(text.substr(start, end-start),allow_undo, prepend_newline, html); |
3636 | if (end < (S32)text.length()) | 3636 | if (end < (S32)text.length()) |
3637 | { | 3637 | { |
3638 | text = text.substr(end,text.length() - end); | 3638 | text = text.substr(end,text.length() - end); |
3639 | end=0; | 3639 | end=0; |
@@ -3653,7 +3653,7 @@ void LLTextEditor::appendStyledText(const std::string &new_text, | |||
3653 | 3653 | ||
3654 | // Appends new text to end of document | 3654 | // Appends new text to end of document |
3655 | void LLTextEditor::appendText(const std::string &new_text, bool allow_undo, bool prepend_newline, | 3655 | void LLTextEditor::appendText(const std::string &new_text, bool allow_undo, bool prepend_newline, |
3656 | const LLStyleSP *stylep) | 3656 | const LLStyleSP stylep) |
3657 | { | 3657 | { |
3658 | // Save old state | 3658 | // Save old state |
3659 | BOOL was_scrolled_to_bottom = (mScrollbar->getDocPos() == mScrollbar->getDocPosMax()); | 3659 | BOOL was_scrolled_to_bottom = (mScrollbar->getDocPos() == mScrollbar->getDocPosMax()); |
@@ -3685,7 +3685,7 @@ void LLTextEditor::appendText(const std::string &new_text, bool allow_undo, bool | |||
3685 | { | 3685 | { |
3686 | S32 segment_start = old_length; | 3686 | S32 segment_start = old_length; |
3687 | S32 segment_end = getLength(); | 3687 | S32 segment_end = getLength(); |
3688 | LLTextSegment* segment = new LLTextSegment(*stylep, segment_start, segment_end ); | 3688 | LLTextSegment* segment = new LLTextSegment(stylep, segment_start, segment_end ); |
3689 | mSegments.push_back(segment); | 3689 | mSegments.push_back(segment); |
3690 | } | 3690 | } |
3691 | 3691 | ||