From 9f2aee65453981b37b7108ba3acdd86f0354defa Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sun, 15 Mar 2009 14:23:39 -0500 Subject: Second Life viewer sources 1.22.11 --- linden/indra/llui/lltexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linden/indra/llui') diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index a40fec8..62064d9 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp @@ -1009,7 +1009,7 @@ void LLTextEditor::indentSelectedLines( S32 spaces ) } else { - while( (text[right] != '\n') && (right <= getLength() ) ) + while( right < getLength() && (text[right] != '\n') ) { right++; } -- cgit v1.1