Mercurial > hg > forks > geeqie
changeset 1297:ae7da76b7e9e
fixed histogram drawing
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Sun, 15 Feb 2009 17:27:48 +0000 |
parents | 27a4dca21883 |
children | 86766089aeb1 |
files | src/image-overlay.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/image-overlay.c Sun Feb 15 15:58:01 2009 +0000 +++ b/src/image-overlay.c Sun Feb 15 17:27:48 2009 +0000 @@ -840,7 +840,10 @@ if (osd->show & OSD_SHOW_INFO) { - if (osd->changed_states & IMAGE_STATE_IMAGE) + /* redraw when the image was changed, + with histogram we have to redraw also when loading is finished */ + if (osd->changed_states & IMAGE_STATE_IMAGE || + (osd->changed_states & IMAGE_STATE_LOADING && osd->show & OSD_SHOW_HISTOGRAM)) { GdkPixbuf *pixbuf;