# HG changeset patch # User zas_ # Date 1208994473 0 # Node ID e5023cced4e5edbc85fe09309ecdb5381d22db77 # Parent 2c6558663b52abe55875be80e1a46d300de81368 Fix image overlay displayed only on second "I" press in layout view. diff -r 2c6558663b52 -r e5023cced4e5 src/image-overlay.c --- a/src/image-overlay.c Wed Apr 23 23:35:13 2008 +0000 +++ b/src/image-overlay.c Wed Apr 23 23:47:53 2008 +0000 @@ -125,7 +125,9 @@ void image_osd_toggle(ImageWindow *imd) { - if (image_osd_get(imd, NULL, NULL)) + gint info; + + if (image_osd_get(imd, &info, NULL) && info) { if (image_osd_histogram_onoff_status(imd)) {