aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-06 20:09:32 -0700
committerMcCabe Maxsted2010-09-06 20:10:07 -0700
commit7106e399b3343702b053547651264ff70ad3fa8f (patch)
tree0643d49f6d58c2cedc24577bc494c7a889710c10 /linden/indra/llui/lltexteditor.cpp
parentFixed regression of #295 in the 09.04 experimental (diff)
downloadmeta-impy-7106e399b3343702b053547651264ff70ad3fa8f.zip
meta-impy-7106e399b3343702b053547651264ff70ad3fa8f.tar.gz
meta-impy-7106e399b3343702b053547651264ff70ad3fa8f.tar.bz2
meta-impy-7106e399b3343702b053547651264ff70ad3fa8f.tar.xz
Fixed regression of #245
Diffstat (limited to 'linden/indra/llui/lltexteditor.cpp')
-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--)