Mercurial > geeqie.yaz
changeset 1447:a10d70ae85e9
fixed segfault in osd called from img-view
http://sourceforge.net/tracker/index.php?func=detail&aid=2684068&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Sun, 15 Mar 2009 18:41:25 +0000 |
parents | a6f9ba6fd751 |
children | 89dedc61b1bd |
files | src/image-overlay.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/image-overlay.c Sun Mar 15 18:06:41 2009 +0000 +++ b/src/image-overlay.c Sun Mar 15 18:41:25 2009 +0000 @@ -147,25 +147,25 @@ void image_osd_toggle(ImageWindow *imd) { - OverlayStateData *osd; + OsdShowFlags show; if (!imd) return; - osd = image_get_osd_data(imd); - if (osd->show == OSD_SHOW_NOTHING) + show = image_osd_get(imd); + if (show == OSD_SHOW_NOTHING) { image_osd_set(imd, OSD_SHOW_INFO | OSD_SHOW_STATUS); return; } else { - if (osd->show & OSD_SHOW_HISTOGRAM) + if (show & OSD_SHOW_HISTOGRAM) { image_osd_set(imd, OSD_SHOW_NOTHING); } else { - image_osd_set(imd, osd->show | OSD_SHOW_HISTOGRAM); + image_osd_set(imd, show | OSD_SHOW_HISTOGRAM); } } }