diff options
author | McCabe Maxsted | 2010-09-06 20:09:32 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-09-06 20:10:07 -0700 |
commit | 7106e399b3343702b053547651264ff70ad3fa8f (patch) | |
tree | 0643d49f6d58c2cedc24577bc494c7a889710c10 /linden | |
parent | Fixed regression of #295 in the 09.04 experimental (diff) | |
download | meta-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')
-rw-r--r-- | linden/indra/llui/lltexteditor.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 3 |
2 files changed, 8 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 | ||
1080 | void LLTextEditor::setCursor(S32 row, S32 column) | 1080 | void 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--) |
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index c77f7ff..d8c3aa9 100644 --- a/linden/indra/newview/llpreviewscript.cpp +++ b/linden/indra/newview/llpreviewscript.cpp | |||
@@ -1097,6 +1097,9 @@ void LLPreviewLSL::callbackLSLCompileFailed(const LLSD& compile_errors) | |||
1097 | line < compile_errors.endArray(); | 1097 | line < compile_errors.endArray(); |
1098 | line++) | 1098 | line++) |
1099 | { | 1099 | { |
1100 | // Note: OpenSim screws up and sends the wrong values for (row, column). | ||
1101 | // (As of 2010-09-06: rows start at -1 instead of 0, and columns start at | ||
1102 | // 1 instead of 0) -- MC | ||
1100 | LLSD row; | 1103 | LLSD row; |
1101 | std::string error_message = line->asString(); | 1104 | std::string error_message = line->asString(); |
1102 | LLStringUtil::stripNonprintable(error_message); | 1105 | LLStringUtil::stripNonprintable(error_message); |