summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-25 12:38:13 +0200
committerEike Rathke <erack@redhat.com>2016-08-25 15:51:52 +0200
commit035fc620b833a853a5ef84a7a05298be8d91a24c (patch)
tree3b92a1f93fbbd415eeee7015955fd25c32a25f34 /sc
parent28da3aed71a4850f47156d717b6a18fce98154e9 (diff)
move the nCurFmtType=UNDEFINED from PushWithoutError()
... to the only place where it makes sense. Change-Id: I8a2927af97abee28dd0ec89793c4745dcbd0031f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index c6e3f209b338..64b151d2ea9c 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -628,7 +628,6 @@ void ScInterpreter::PushWithoutError( const FormulaToken& r )
SetError( errStackOverflow );
else
{
- nCurFmtType = css::util::NumberFormat::UNDEFINED;
r.IncRef();
if( sp >= maxsp )
maxsp = sp + 1;
@@ -3885,6 +3884,7 @@ StackVar ScInterpreter::Interpret()
{
// RPN code push without error
PushWithoutError( *pCur );
+ nCurFmtType = css::util::NumberFormat::UNDEFINED;
}
else if (pTokenMatrixMap &&
!(eOp == ocIf || eOp == ocIfError || eOp == ocIfNA || eOp == ocChoose) &&