Commit 2a3d9295 authored by Morten Welinder's avatar Morten Welinder

Cond format: fix crash with "copy" button in gui.

parent c5347462
2018-07-12 Morten Welinder <terra@gnome.org>
* src/mstyle.c (gnm_style_get_cond_style): Update the cached
styles as needed. Fixes #343.
2018-06-08 Morten Welinder <terra@gnome.org>
* src/xml-sax-write.c (gnm_cellregion_to_xml): Impose ordering on
......
......@@ -12,6 +12,7 @@ Morten:
* Don't save any configuration when running ssconvert/ssdiff/...
* Turn GnmFunc into a GObject.
* Make clipboard output deterministic.
* Fix conditional format crash [#343].
--------------------------------------------------------------------------
Gnumeric 1.12.41
......
......@@ -2303,15 +2303,16 @@ gnm_style_get_cond_style (GnmStyle const *style, int ix)
{
g_return_val_if_fail (style != NULL, NULL);
g_return_val_if_fail (elem_is_set (style, MSTYLE_CONDITIONS), NULL);
g_return_val_if_fail (style->cond_styles != NULL, NULL);
g_return_val_if_fail (style->conditions != NULL, NULL);
g_return_val_if_fail (ix >= 0 && (unsigned)ix < gnm_style_conditions_details (style->conditions)->len, NULL);
g_return_val_if_fail (ix >= 0 && (unsigned)ix < style->cond_styles->len, NULL);
if (style->changed)
gnm_style_update ((GnmStyle *)style);
return g_ptr_array_index (style->cond_styles, ix);
}
static gboolean
debug_style_deps (void)
{
......
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