summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr2.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index aa06d915c..39ab253c8 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -2943,7 +2943,11 @@ void ScInterpreter::ScGetPivotData()
// there must be an even number of args
// target, ref, then field/item pairs
if( (nParamCount % 2) == 1)
- goto failed;
+ {
+ // if not, append an extra fake parameter to compensate for it.
+ PushString(ScGlobal::GetEmptyString());
+ ++nParamCount;
+ }
bool bOldSyntax = false;
if ( nParamCount == 2 )