[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - sc/source
Eike Rathke
erack at redhat.com
Sat Jan 27 20:01:46 UTC 2018
sc/source/core/tool/interpr3.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 45b5060048daac415f43b75152f3251ee8d1fead
Author: Eike Rathke <erack at redhat.com>
Date: Fri Jan 19 18:30:45 2018 +0100
Don't push error twice
No harm was done as the stack is cleaned up afterwards, but it's wrong
anyway and having to push the result downwards during cleanup is
unnecessary.
Change-Id: I0b2c153c9791ce5c287d340bac466c19cd6a5703
(cherry picked from commit 2e832eff2fea4005fb43521593f979657ef7c111)
Reviewed-on: https://gerrit.libreoffice.org/48226
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index 7c9753cae3b7..b66d867a0bcb 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -2704,13 +2704,14 @@ void ScInterpreter::ScTTest()
}
else if (fTyp == 2.0)
{
- CalculateTest(false,nC1, nC2,nR1, nR2,pMat1,pMat2,fT,fF);
+ if (!CalculateTest(false,nC1, nC2,nR1, nR2,pMat1,pMat2,fT,fF))
+ return; // error was pushed
}
else if (fTyp == 3.0)
{
- CalculateTest(true,nC1, nC2,nR1, nR2,pMat1,pMat2,fT,fF);
+ if (!CalculateTest(true,nC1, nC2,nR1, nR2,pMat1,pMat2,fT,fF))
+ return; // error was pushed
}
-
else
{
PushIllegalArgument();
More information about the Libreoffice-commits
mailing list