comparison src/image-overlay.c @ 464:af7d8c1615db

Fix a segfault occuring when pressing 'i' for overlay info in a separate image window (no layout).
author zas_
date Mon, 21 Apr 2008 15:30:16 +0000
parents 115db540bd0c
children 2df505c60459
comparison
equal deleted inserted replaced
463:544934a1ff89 464:af7d8c1615db
310 imgpixbuf = (PIXBUF_RENDERER(imd->pr))->pixbuf; 310 imgpixbuf = (PIXBUF_RENDERER(imd->pr))->pixbuf;
311 } 311 }
312 if (!lw) 312 if (!lw)
313 lw = layout_find_by_image(imd); 313 lw = layout_find_by_image(imd);
314 314
315 if (imgpixbuf && lw->histogram && lw->histogram_enabled 315 if (imgpixbuf && lw && lw->histogram && lw->histogram_enabled
316 && (!imd->il || imd->il->done)) 316 && (!imd->il || imd->il->done))
317 with_hist=1; 317 with_hist=1;
318 318
319 g_hash_table_insert(vars, "width", g_strdup_printf("%d", w)); 319 g_hash_table_insert(vars, "width", g_strdup_printf("%d", w));
320 g_hash_table_insert(vars, "height", g_strdup_printf("%d", h)); 320 g_hash_table_insert(vars, "height", g_strdup_printf("%d", h));