Fix segfault with invalid bold font.
authorDarko Koruga <darko@users.sourceforge.net>
Fri, 25 May 2001 05:36:06 +0000 (05:36 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Fri, 25 May 2001 05:36:06 +0000 (05:36 +0000)
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); \
 }