fixed segfault in histogram
authorVladimir Nadvornik <nadvornik@suse.cz>
Sat, 21 Mar 2009 20:19:11 +0000 (20:19 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sat, 21 Mar 2009 20:19:11 +0000 (20:19 +0000)
http://sourceforge.net/tracker/index.php?func=detail&aid=2690498&group_id=222125&atid=1054680

src/bar_histogram.c

index c52dd2f..c78975e 100644 (file)
@@ -81,6 +81,7 @@ static gboolean bar_pane_histogram_update_cb(gpointer data)
        
        gtk_widget_queue_draw_area(GTK_WIDGET(phd->drawing_area), 0, 0, phd->histogram_width, phd->histogram_height);
        
+       if (phd->fd == NULL) return FALSE;
        histmap = histmap_get(phd->fd);
        
        if (!histmap)