changeset 1297:9b59d40030d2

fixed histogram drawing
author nadvornik
date Sun, 15 Feb 2009 17:27:48 +0000
parents cfe814fc8e74
children c37f36b97173
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;