Commit a866ccb2 authored by Morten Welinder's avatar Morten Welinder

GROWTH: Fix error check.

parent 2d85cd88
2015-06-30 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_eval): Don't crash if an empty array makes
it all the way here.
2015-06-29 Morten Welinder <terra@gnome.org>
* src/func.c (function_iterate_argument_values): Improve name
......
2015-06-30 Morten Welinder <terra@gnome.org>
* functions.c (gnumeric_growth): Fix check for no results. Fixes
reopened #751659.
2015-06-29 Morten Welinder <terra@gnome.org>
* functions.c (gnumeric_growth): Properly handle that the second
......
......@@ -4333,7 +4333,7 @@ gnumeric_growth (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
affine = argv[3] ? value_get_as_checked_bool (argv[3]) : TRUE;
if (n <= 0) {
if (nnx <= 0) {
res = value_new_error_NUM (ei->pos);
goto out;
}
......
......@@ -1473,7 +1473,9 @@ gnm_expr_eval (GnmExpr const *expr, GnmEvalPos const *pos,
}
if (VALUE_IS_ARRAY (res) &&
!(flags & GNM_EXPR_EVAL_PERMIT_NON_SCALAR)) {
a = value_dup (res->v_array.vals[0][0]);
a = (res->v_array.x > 0 && res->v_array.y > 0)
? value_dup (res->v_array.vals[0][0])
: value_new_error_REF (pos);
value_release (res);
return a;
}
......
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