[Rawstudio-commit] r3234 - trunk/src

Anders Kvist anders at kvistmail.dk
Mon Feb 15 00:49:17 CET 2010


Author: akv
Date: 2010-02-15 00:49:17 +0100 (Mon, 15 Feb 2010)
New Revision: 3234

Modified:
   trunk/src/rs-photo.c
Log:
Using WB Presets when opening a photo.

Modified: trunk/src/rs-photo.c
===================================================================
--- trunk/src/rs-photo.c	2010-02-14 23:26:01 UTC (rev 3233)
+++ trunk/src/rs-photo.c	2010-02-14 23:49:17 UTC (rev 3234)
@@ -325,6 +325,20 @@
 		return;
 
 	rs_settings_copy(settings, mask, photo->settings[snapshot]);
+
+        /* Check if we need to update WB to camera or auto */
+	gint i;
+	for(i = 0; i < 3; i++)
+	{
+		if (mask & MASK_WB && photo->settings[i]->wb_ascii)
+		{
+			if (g_strcmp0(photo->settings[i]->wb_ascii, PRESET_WB_AUTO) == 0)
+				rs_photo_set_wb_auto(photo, i);
+			else if (g_strcmp0(photo->settings[i]->wb_ascii, PRESET_WB_CAMERA) == 0)
+				rs_photo_set_wb_from_camera(photo, i);
+		}
+	}
+
 }
 
 /**




More information about the Rawstudio-commit mailing list