Commit 8745a0d3 authored by Morten Welinder's avatar Morten Welinder
Browse files

CondFormat: fix problem during sheet invalidate.

parent 0324b37b
2022-10-29 Morten Welinder <terra@gnome.org>
* src/sheet-conditions.c (update_group): Fix problem during sheet
finalize.
* src/sheet.c (sheet_destroy_contents): Set cell_hash to NULL
after we free it for easier debug.
2022-10-08 Morten Welinder <terra@gnome.org>
* src/libgnumeric.c (gnm_pre_parse_init): Use basename of argv[0],
......
......@@ -7,6 +7,7 @@ Morten:
* Improve various desktop environments' icon discovery. [#677]
* New function ENCODEURL. [#658]
* New libpython configuration. [#680]
* Fix problem relating to sheet remove and conditional format.
--------------------------------------------------------------------------
Gnumeric 1.12.53
......
......@@ -711,6 +711,10 @@ update_group (CSGroup *g)
return;
}
// If we are finalizing the sheet, just get out.
if (g->dep.base.sheet->deps == NULL)
return;
pos = &g_array_index (g->ranges, GnmRange, 0).start;
gnm_style_conditions_set_pos (g->conds, pos);
......
......@@ -4943,6 +4943,7 @@ sheet_destroy_contents (Sheet *sheet)
/* Remove all the cells */
sheet_cell_foreach (sheet, (GHFunc) &cb_remove_allcells, NULL);
g_hash_table_destroy (sheet->cell_hash);
sheet->cell_hash = NULL;
/* Delete in ascending order to avoid decrementing max_used each time */
for (i = 0; i <= sheet->cols.max_used; ++i)
......
Supports Markdown
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