[Rawstudio-commit] r1306 - trunk/src

Anders Brander anders at brander.dk
Tue Jun 26 14:58:23 CEST 2007


Author: abrander
Date: 2007-06-26 14:58:22 +0200 (Tue, 26 Jun 2007)
New Revision: 1306

Modified:
   trunk/src/rs-image.c
Log:
Made assertion in rs_image8_render_exposure_mask() effective.

Modified: trunk/src/rs-image.c
===================================================================
--- trunk/src/rs-image.c	2007-06-20 06:43:40 UTC (rev 1305)
+++ trunk/src/rs-image.c	2007-06-26 12:58:22 UTC (rev 1306)
@@ -606,8 +606,8 @@
 rs_image8_render_exposure_mask(RS_IMAGE8 *image, gint only_row)
 {
 	gint row, col;
-	gint start = 0;
-	gint stop = image->h;
+	gint start;
+	gint stop;
 
 	g_assert(image != NULL);
 	g_assert(image->channels == 3);
@@ -617,6 +617,11 @@
 		start = only_row;
 		stop = only_row + 1;
 	}
+	else
+	{
+		start = 0;
+		stop = image->h;
+	}
 
 	for(row=start;row<stop;row++)
 	{




More information about the Rawstudio-commit mailing list