sc/source/core/inc/interpre.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 296c42cdb8e9dee5ac912d9777afdf3bab63efb9
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Sat Feb 18 00:23:22 2023 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Sat Feb 18 00:44:11 2023 +0000

    Proper error is UnknownStackVariable
    
    Change-Id: I79b27c279449022144c50300da3f96522c42f438
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147260
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins

diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index a6bd98320f71..853d76751732 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -1080,7 +1080,7 @@ inline bool 
ScInterpreter::MustHaveParamCountMinWithStackCheck( short nAct, shor
     assert(sp >= nAct);
     if (sp < nAct)
     {
-        PushParameterExpected();
+        PushError(FormulaError::UnknownStackVariable);
         return false;
     }
     return MustHaveParamCountMin( nAct, nMin);

Reply via email to