[gnumeric] func: avoid dead kittens.



commit 8c622cb0baa7094ca4473d050d65af04d7ec2504
Author: Morten Welinder <terra gnome org>
Date:   Mon Oct 23 09:25:37 2017 -0400

    func: avoid dead kittens.
    
    No link color anymore, it seems.

 ChangeLog  |   10 ++++++++--
 src/func.c |    7 +++++--
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b2bfcf5..7e3ba4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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>
 
diff --git a/src/func.c b/src/func.c
index d278015..a69761a 100644
--- a/src/func.c
+++ b/src/func.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]