Commit 1be7191c authored by Morten Welinder's avatar Morten Welinder

SWITCH: When off-argument default case.

parent 3841465d
Gnumeric 1.12.44
Morten:
* Fix SWITCH's default argument. [#354]
--------------------------------------------------------------------------
Gnumeric 1.12.43
......
......@@ -332,7 +332,7 @@ gnumeric_switch (GnmFuncEvalInfo *ei, int argc, GnmExprConstPtr const *argv)
if (VALUE_IS_ERROR (ref))
return ref;
for (a = 1; !res && a + 1 <= argc; a += 2) {
for (a = 1; !res && a + 1 < argc; a += 2) {
GnmValue *v;
v = gnm_expr_eval (argv[a], ei->pos, GNM_EXPR_EVAL_SCALAR_NON_EMPTY);
......
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