changeset 613:d06f422a6673

image_osd_histogram_chan_toggle(), image_osd_histogram_log_toggle(): reduce indentation level.
author zas_
date Fri, 09 May 2008 09:34:38 +0000
parents 21864cc96369
children b2898f04c82e
files src/image-overlay.c
diffstat 1 files changed, 8 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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)