[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sc/source
Eike Rathke
erack at redhat.com
Tue Dec 19 19:23:58 UTC 2017
sc/source/core/tool/interpr6.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3fb74dbbe2ccce8daf83a189fe8bd567ac29259b
Author: Eike Rathke <erack at redhat.com>
Date: Tue Dec 19 16:28:04 2017 +0100
Resolves: tdf#114539 only pop own parameters from stack
... and not another pending one..
Change-Id: Ief5c27ccfb0b4121f2ba019e0fb8770dabbf60cf
(cherry picked from commit 4b444b4c1efc2be219e6975e30048ff616fdac0f)
Reviewed-on: https://gerrit.libreoffice.org/46800
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index 04a664831c9f..62c96376c664 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -1070,10 +1070,11 @@ void ScInterpreter::ScRawSubtract()
// Obtain the minuend.
double fRes = GetDouble();
- while (nGlobalError == FormulaError::NONE && nParamCount-- > 1)
+ while (nGlobalError == FormulaError::NONE && nParamCount > 1)
{
// Simple single values without matrix support.
fRes -= GetDouble();
+ --nParamCount;
}
while (nParamCount-- > 0)
PopError();
More information about the Libreoffice-commits
mailing list