Fix segfault with invalid bold font.
[claws.git] / src / headerview.c
index 47eaf3cd995989c1df0f06bbfbe7cbe1a5469690..470b77fdc9976f8b895c3261c831ba38c1e76ea7 100644 (file)
@@ -141,7 +141,9 @@ void headerview_init(HeaderView *headerview)
        GtkStyle *style; \
  \
        style = gtk_style_copy(gtk_widget_get_style(headerview->wid)); \
-       style->font = boldfont; \
+       if (boldfont) { \
+               style->font = boldfont; \
+        } \
        gtk_widget_set_style(headerview->wid, style); \
 }