Skip to content

Commit db6a928

Browse files
committed
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
1 parent 95e13b8 commit db6a928

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sc/source/core/tool/interpr5.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3251,6 +3251,8 @@ void ScInterpreter::ScInfo()
32513251
PushDouble( 1 );
32523252
else if( aStr == "RECALC" )
32533253
PushString( ScGlobal::GetRscString( pDok->GetAutoCalc() ? STR_RECALC_AUTO : STR_RECALC_MANUAL ) );
3254+
else if (aStr == "DIRECTORY" || aStr == "MEMAVAIL" || aStr == "MEMUSED" || aStr == "ORIGIN" || aStr == "TOTMEM")
3255+
PushNA();
32543256
else
32553257
PushIllegalArgument();
32563258
}

0 commit comments

Comments
 (0)