Commit 5e61eb9d authored by Morten Welinder's avatar Morten Welinder

Sheet: crash avoidance if cells miss col/row info.

parent a296a6ca
......@@ -4,6 +4,7 @@ Morten:
* Fix problem with object pasting.
* Fix undo problem for cell comments. [#732653]
* Exit with non-zero with we fail to load file on command line.
* Fix undo crash. [#795861]
--------------------------------------------------------------------------
Gnumeric 1.12.40
......
......@@ -4168,6 +4168,10 @@ sheet_foreach_cell_in_region (Sheet *sheet, CellIterFlags flags,
last_row = iter.pp.eval.row;
iter.ri = sheet_row_get (iter.pp.sheet, last_row);
}
if (iter.ri == NULL) {
g_critical ("Cell without row data -- please report");
continue;
}
if (visibility_matters && !iter.ri->visible)
continue;
if (ignore_filtered && iter.ri->in_filter && !iter.ri->visible)
......@@ -4177,6 +4181,10 @@ sheet_foreach_cell_in_region (Sheet *sheet, CellIterFlags flags,
last_col = iter.pp.eval.col;
iter.ci = sheet_col_get (iter.pp.sheet, last_col);
}
if (iter.ci == NULL) {
g_critical ("Cell without column data -- please report");
continue;
}
if (visibility_matters && !iter.ci->visible)
continue;
......
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