Commit d9535f4b authored by Morten Welinder's avatar Morten Welinder

eval: survice strangeness in arrays.

parent 12a6744f
2010-08-04 Morten Welinder <terra@gnome.org>
* src/expr.c (gnm_expr_eval): Catch when the alleged array corner
isn't a corner. See bug 626034.
* src/cell.c (gnm_cell_set_array_formula): Improve preconditions.
(gnm_cell_cleanout): Add precondition.
......@@ -12,8 +15,8 @@
2010-08-04 Jean Brefort <jean.brefort@normalesup.org>
* src/dependent.c (gnm_cell_eval_content): force columns span recalculation
when switching between number and error. [#625994]
* src/dependent.c (gnm_cell_eval_content): force columns span
recalculation when switching between number and error. [#625994]
2010-08-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
......
......@@ -1494,8 +1494,11 @@ gnm_expr_eval (GnmExpr const *expr, GnmEvalPos const *pos,
/* The upper left corner manages the recalc of the expr */
GnmCell *corner = array_elem_get_corner (&expr->array_elem,
pos->sheet, &pos->eval);
if (corner == NULL)
if (!corner ||
!gnm_expr_top_is_array_corner (corner->base.texpr)) {
g_warning ("Funky array setup.");
return handle_empty (NULL, flags);
}
gnm_cell_eval (corner);
a = corner->base.texpr->expr->array_corner.value;
......
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