[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Thu Nov 5 13:51:06 PST 2015
sc/source/core/tool/interpr5.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit db6a928a420868b2a80ba11c8d46151d16c13624
Author: Eike Rathke <erack at redhat.com>
Date: Thu Nov 5 22:45:01 2015 +0100
return #N/A for defined but unsupported arguments, tdf#95010 related
... which is what also Excel does for memavail, memused and totmem.
Change-Id: I48330d0a78094f7c40c02bc992a12353b511f29f
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index f44bb88..e7107e8 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -3251,6 +3251,8 @@ void ScInterpreter::ScInfo()
PushDouble( 1 );
else if( aStr == "RECALC" )
PushString( ScGlobal::GetRscString( pDok->GetAutoCalc() ? STR_RECALC_AUTO : STR_RECALC_MANUAL ) );
+ else if (aStr == "DIRECTORY" || aStr == "MEMAVAIL" || aStr == "MEMUSED" || aStr == "ORIGIN" || aStr == "TOTMEM")
+ PushNA();
else
PushIllegalArgument();
}
More information about the Libreoffice-commits
mailing list