Mercurial > geeqie.yaz
diff src/bar_histogram.c @ 1474:aec6992e5116
fixed segfault in histogram
http://sourceforge.net/tracker/index.php?func=detail&aid=2690498&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Sat, 21 Mar 2009 20:19:11 +0000 |
parents | 65a5c27823c2 |
children | 0e82a03c165b |
line wrap: on
line diff
--- a/src/bar_histogram.c Sat Mar 21 19:51:07 2009 +0000 +++ b/src/bar_histogram.c Sat Mar 21 20:19:11 2009 +0000 @@ -81,6 +81,7 @@ 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)