Kaydet (Commit) 91cad2de authored tarafından Eike Rathke's avatar Eike Rathke

Compare() and CompareMat(): PopError() to propagate

... an already existing error instead of overriding with
errIllegalParameter.

Change-Id: Iebdbe1fbaba8aa1628eacc2a3ad3d193af7a42bf
üst 3cb45765
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment