From 0fe86a30bccc47cfb3dd89a0997941580a9c4eab Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 23 Jan 2015 11:09:19 +0100 Subject: [PATCH] Replace magic number with correct way to retrieve the value --- indra/newview/llpreviewscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index 7adec51096..6cdddf5522 100755 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -747,7 +747,7 @@ void LLScriptEdCore::setScriptText(const std::string& text, BOOL is_valid) if(mPostEditor)mPostEditor->setText(ntext); ntext = mLSLProc->decode(ntext); } - LLStringUtil::replaceTabsWithSpaces(ntext, 4); + LLStringUtil::replaceTabsWithSpaces(ntext, mEditor->spacesPerTab()); // NaCl End mEditor->setText(ntext); mHasScriptData = is_valid;