summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/token.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index a32853cfc1ed..669575f23e14 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -1393,7 +1393,8 @@ FormulaTokenArray * FormulaTokenArray::RewriteMissing( const MissingConvention &
if (pCtx[ pOcds[ i ] ].mnCurArg == nOmitDcountArg)
{
// Omit only a literal 0 value, nothing else.
- if (pOcds[ i ] == nFn && pCur->GetOpCode() == ocPush && pCur->GetDouble() == 0.0)
+ if (pOcds[ i ] == nFn && pCur->GetOpCode() == ocPush && pCur->GetType() == svDouble &&
+ pCur->GetDouble() == 0.0)
{
// No other expression, between separators.
FormulaToken* p = PeekPrevNoSpaces();