diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-20 21:20:16 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-20 21:20:44 -0500 |
commit | 6c9891d40b827c74cacfddf346c9aecad9959a9c (patch) | |
tree | db9d372108536d231f62a03ae989bf723dc59999 | |
parent | 9c09211bce7ed8e85ba75d8702e3d8703f9dc662 (diff) |
Let's make it available in experimental mode only.
Change-Id: I023db5b98518296eb2964abe8c62f60d65d413a8
-rw-r--r-- | sc/source/core/tool/interpr7.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx index 0bcf7ae1a5bc..aa07090cdd41 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(); |