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 51f7ad6..8123af2 100644
--- a/linden/indra/llui/lltexteditor.cpp
+++ b/linden/indra/llui/lltexteditor.cpp
@@ -1079,6 +1079,11 @@ S32 LLTextEditor::getCursorPosFromLocalCoord( S32 local_x, S32 local_y, BOOL rou
1079 1079
1080void LLTextEditor::setCursor(S32 row, S32 column) 1080void LLTextEditor::setCursor(S32 row, S32 column)
1081{ 1081{
1082 // Make sure we're not trying to set the cursor anywhere
1083 // it can't go by always setting the min to 0 -- MC
1084 row = (row < 0) ? 0 : row;
1085 column = (column < 0) ? 0 : column;
1086
1082 const llwchar* doc = mWText.c_str(); 1087 const llwchar* doc = mWText.c_str();
1083 const char CR = 10; 1088 const char CR = 10;
1084 while(row--) 1089 while(row--)