diff options
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 3bb3cf83c350..070510deb1f6 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -3961,11 +3961,11 @@ StackVar ScInterpreter::Interpret() eOp = ocNone; // JumpMatrix created nStackBase = sp; } - else + else if (sp >= pCur->GetParamCount()) nStackBase = sp - pCur->GetParamCount(); + else + nStackBase = sp; // underflow?!? } - if ( nStackBase > sp ) - nStackBase = sp; // underflow?!? switch( eOp ) { |