aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpreviewscript.cpp')
-rw-r--r--linden/indra/newview/llpreviewscript.cpp5
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";