Commit 8c622cb0 authored by Morten Welinder's avatar Morten Welinder

func: avoid dead kittens.

No link color anymore, it seems.
parent 0df7a158
2017-10-23 Morten Welinder <terra@gnome.org>
* src/func.c (gnm_func_convert_markup_to_pango): Avoid dead kitten
criticals.
2017-07-06 Morten Welinder <terra@gnome.org>
* configure.ac: Post-release bump.
......@@ -8,8 +13,9 @@
2017-06-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sheet-object-widget.c (sheet_widget_slider_horizontal_draw_cairo): use
narrower slider button
* src/sheet-object-widget.c
(sheet_widget_slider_horizontal_draw_cairo): use narrower slider
button
2017-05-18 Morten Welinder <terra@gnome.org>
......
......@@ -1802,8 +1802,11 @@ gnm_func_convert_markup_to_pango (char const *desc, GtkWidget *target)
size_t span_text_len;
gtk_widget_style_get (target, "link-color", &link_color, NULL);
link_color_text = gdk_color_to_string (link_color);
gdk_color_free (link_color);
if (link_color) {
link_color_text = gdk_color_to_string (link_color);
gdk_color_free (link_color);
} else
link_color_text = g_strdup ("blue");
span_text = g_strdup_printf ("<span foreground=\"%s\">",
link_color_text);
span_text_len = strlen (span_text);
......
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