diff options
author | McCabe Maxsted | 2010-04-26 00:45:59 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-26 00:45:59 -0700 |
commit | ed609248ec4d92e0b2fb96d28615035e26293019 (patch) | |
tree | 27a4e8ab43546a51ebc00a6451ed6ed9a8e308e4 /linden/indra/llui | |
parent | Fixed #199: After losing connection, 'Quit' button doesn't quit (diff) | |
download | meta-impy-ed609248ec4d92e0b2fb96d28615035e26293019.zip meta-impy-ed609248ec4d92e0b2fb96d28615035e26293019.tar.gz meta-impy-ed609248ec4d92e0b2fb96d28615035e26293019.tar.bz2 meta-impy-ed609248ec4d92e0b2fb96d28615035e26293019.tar.xz |
Fixed #245: Script compile error from OpenSim crashes Imprudence
Diffstat (limited to 'linden/indra/llui')
-rw-r--r-- | linden/indra/llui/lltexteditor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linden/indra/llui/lltexteditor.cpp b/linden/indra/llui/lltexteditor.cpp index c4f839b..00fa517 100644 --- a/linden/indra/llui/lltexteditor.cpp +++ b/linden/indra/llui/lltexteditor.cpp | |||
@@ -886,6 +886,11 @@ S32 LLTextEditor::getCursorPosFromLocalCoord( S32 local_x, S32 local_y, BOOL rou | |||
886 | 886 | ||
887 | void LLTextEditor::setCursor(S32 row, S32 column) | 887 | void LLTextEditor::setCursor(S32 row, S32 column) |
888 | { | 888 | { |
889 | // Make sure we're not trying to set the cursor anywhere | ||
890 | // it can't go by always setting the min to 0 -- MC | ||
891 | row = (row < 0) ? 0 : row; | ||
892 | column = (column < 0) ? 0 : column; | ||
893 | |||
889 | const llwchar* doc = mWText.c_str(); | 894 | const llwchar* doc = mWText.c_str(); |
890 | const char CR = 10; | 895 | const char CR = 10; |
891 | while(row--) | 896 | while(row--) |