# HG changeset patch # User zas_ # Date 1210325678 0 # Node ID d06f422a66730b6b852de1667683c0d1df7157b9 # Parent 21864cc96369b9751139fc1d8dd4c32d885c1631 image_osd_histogram_chan_toggle(), image_osd_histogram_log_toggle(): reduce indentation level. diff -r 21864cc96369 -r d06f422a6673 src/image-overlay.c --- a/src/image-overlay.c Fri May 09 08:39:18 2008 +0000 +++ b/src/image-overlay.c Fri May 09 09:34:38 2008 +0000 @@ -107,20 +107,18 @@ void image_osd_histogram_chan_toggle(ImageWindow *imd) { - if (imd->histogram) - { - histogram_set_channel(imd->histogram, (histogram_get_channel(imd->histogram) +1)%HCHAN_COUNT); - image_osd_update(imd); - } + if (!imd->histogram) return; + + histogram_set_channel(imd->histogram, (histogram_get_channel(imd->histogram) +1)%HCHAN_COUNT); + image_osd_update(imd); } void image_osd_histogram_log_toggle(ImageWindow *imd) { - if (imd->histogram) - { - histogram_set_mode(imd->histogram, !histogram_get_mode(imd->histogram)); - image_osd_update(imd); - } + if (!imd->histogram) return; + + histogram_set_mode(imd->histogram, !histogram_get_mode(imd->histogram)); + image_osd_update(imd); } void image_osd_toggle(ImageWindow *imd)