summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-05-02 07:23:19 -0400
committerOz Linden <oz@lindenlab.com>2011-05-02 07:23:19 -0400
commit929bde3ed08f9a1d2a8f4c9821b0d51c11d895e9 (patch)
treea89110e8305803538693885326b1364844984784
parent5a280f320ea5ec7facd13973133c16da7c5a178b (diff)
parentf00eb3e161fbed92733efa14d837b3722ac4797c (diff)
merge changes for storm-229
-rw-r--r--indra/llui/lltexteditor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 5a46c7c98e..9bd445988d 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -592,6 +592,10 @@ void LLTextEditor::indentSelectedLines( S32 spaces )
}
}
+ // Disabling parsing on the fly to avoid updating text segments
+ // until all indentation commands are executed.
+ mParseOnTheFly = FALSE;
+
// Find each start-of-line and indent it
do
{
@@ -617,6 +621,8 @@ void LLTextEditor::indentSelectedLines( S32 spaces )
}
while( cur < right );
+ mParseOnTheFly = TRUE;
+
if( (right < getLength()) && (text[right] == '\n') )
{
right++;