[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Fri Dec 20 18:19:36 PST 2013
sc/source/core/tool/interpr7.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 6c9891d40b827c74cacfddf346c9aecad9959a9c
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Fri Dec 20 21:20:16 2013 -0500
Let's make it available in experimental mode only.
Change-Id: I023db5b98518296eb2964abe8c62f60d65d413a8
diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx
index 0bcf7ae..aa07090 100644
--- a/sc/source/core/tool/interpr7.cxx
+++ b/sc/source/core/tool/interpr7.cxx
@@ -9,6 +9,8 @@
#include "interpre.hxx"
#include <rtl/strbuf.hxx>
+#include <formula/errorcodes.hxx>
+#include <svtools/miscopt.hxx>
#include <com/sun/star/ucb/XSimpleFileAccess3.hpp>
#include <com/sun/star/ucb/SimpleFileAccess.hpp>
@@ -213,6 +215,13 @@ void ScInterpreter::ScDebugVar()
// users. This is a convenient way to extract arbitrary internal state to
// a cell for easier debugging.
+ SvtMiscOptions aMiscOptions;
+ if (!aMiscOptions.IsExperimentalMode())
+ {
+ PushError(ScErrorCodes::errNoName);
+ return;
+ }
+
if (!MustHaveParamCount(GetByte(), 1))
{
PushIllegalParameter();
More information about the Libreoffice-commits
mailing list