sc/source/core/tool/interpr7.cxx |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit 6c9891d40b827c74cacfddf346c9aecad9959a9c
Author: Kohei Yoshida <kohei.yosh...@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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to