diff options
author | simon <none@none> | 2014-02-18 16:41:21 -0800 |
---|---|---|
committer | simon <none@none> | 2014-02-18 16:41:21 -0800 |
commit | 52ce788d0cf77361dc337edaf136f401acd0d4a9 (patch) | |
tree | 10b483a50bb1f3d897ece66d118036201bd74af7 /indra/llui/lltexteditor.cpp | |
parent | 54ab932884c386950f4f31b9ee63446053c03d59 (diff) | |
parent | a347267cf1c55a3bd57d30117b8aa834623e1d61 (diff) |
Pull in viewer-lion to lock down next release
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rwxr-xr-x | indra/llui/lltexteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 02c81c0744..3bac15c5d4 100755 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -2338,7 +2338,8 @@ void LLTextEditor::autoIndent() S32 i; LLWString text = getWText(); - while( ' ' == text[line_start] ) + S32 offset = getLineOffsetFromDocIndex(mCursorPos); + while(( ' ' == text[line_start] ) && (space_count < offset)) { space_count++; line_start++; |