aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/lltexteditor.cpp5
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
887void LLTextEditor::setCursor(S32 row, S32 column) 887void 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--)