[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Fri Aug 5 16:33:31 UTC 2016
sc/source/core/tool/interpr1.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 91cad2de121a10c470b30832ac28597bdffd7101
Author: Eike Rathke <erack at redhat.com>
Date: Fri Aug 5 18:29:06 2016 +0200
Compare() and CompareMat(): PopError() to propagate
... an already existing error instead of overriding with
errIllegalParameter.
Change-Id: Iebdbe1fbaba8aa1628eacc2a3ad3d193af7a42bf
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index e14aaea..bec54db 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -885,6 +885,7 @@ double ScInterpreter::Compare( ScQueryOp eOp )
// mode. Which also means we'd have to change all places where
// it currently is handled along with svMatrix.
default:
+ PopError();
SetError( errIllegalParameter);
break;
}
@@ -953,6 +954,7 @@ sc::RangeMatrix ScInterpreter::CompareMat( ScQueryOp eOp, sc::CompareOptions* pO
// errors are transported as DoubleError inside matrix
break;
default:
+ PopError();
SetError( errIllegalParameter);
break;
}
More information about the Libreoffice-commits
mailing list