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/newview/llpreviewscript.cpp | |
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 '')
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index be8396a..d200e32 100644 --- a/linden/indra/newview/llpreviewscript.cpp +++ b/linden/indra/newview/llpreviewscript.cpp | |||
@@ -1663,8 +1663,11 @@ void LLLiveLSLEditor::callbackLSLCompileFailed(const LLSD& compile_errors) | |||
1663 | line < compile_errors.endArray(); | 1663 | line < compile_errors.endArray(); |
1664 | line++) | 1664 | line++) |
1665 | { | 1665 | { |
1666 | LLSD row; | 1666 | // Note: OpenSim screws up and sends the wrong values for (row, column). |
1667 | // (As of 2010-04-25: rows start at -1 instead of 0, and columns start at | ||
1668 | // 1 instead of 0) -- MC | ||
1667 | std::string error_message = line->asString(); | 1669 | std::string error_message = line->asString(); |
1670 | LLSD row; | ||
1668 | LLStringUtil::stripNonprintable(error_message); | 1671 | LLStringUtil::stripNonprintable(error_message); |
1669 | row["columns"][0]["value"] = error_message; | 1672 | row["columns"][0]["value"] = error_message; |
1670 | row["columns"][0]["font"] = "OCRA"; | 1673 | row["columns"][0]["font"] = "OCRA"; |