diff options
author | Eike Rathke <erack@redhat.com> | 2015-11-05 22:45:01 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-11-05 22:50:03 +0100 |
commit | db6a928a420868b2a80ba11c8d46151d16c13624 (patch) | |
tree | 85db17ba92f97bd95893e0ab70854144d49b53b0 | |
parent | 95e13b89ecb70eb0a03a0c68f0f1e41d02acef22 (diff) |
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
-rw-r--r-- | sc/source/core/tool/interpr5.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index f44bb880e376..e7107e809f08 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(); } |