summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/unoobj/funcuno.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx
index 18cfd2eef580..d3fe7c342c50 100644
--- a/sc/source/ui/unoobj/funcuno.cxx
+++ b/sc/source/ui/unoobj/funcuno.cxx
@@ -423,8 +423,14 @@ public:
mrDocRow++;
}
mbArgError = aVisitor.hasArgError();
- if ( nRowCount && nMaxColCount && !mbOverflow )
- lcl_AddRef( mrTokenArr, nStartRow, nMaxColCount, nRowCount );
+ if (!mbOverflow)
+ {
+ if (nRowCount && nMaxColCount)
+ lcl_AddRef( mrTokenArr, nStartRow, nMaxColCount, nRowCount );
+ else if (nRowCount == 1 && !nMaxColCount)
+ // Empty Sequence<Sequence<Any>> is omitted argument.
+ mrTokenArr.AddOpCode( ocMissing);
+ }
}
bool getOverflow() const { return mbOverflow; }
bool getArgError() const { return mbArgError; }