[Rawstudio-commit] r3237 - trunk/src

Anders Kvist anders at kvistmail.dk
Mon Feb 15 21:30:58 CET 2010


Author: akv
Date: 2010-02-15 21:30:58 +0100 (Mon, 15 Feb 2010)
New Revision: 3237

Modified:
   trunk/src/rs-actions.c
Log:
Updating WB acording to wb_ascii when pasting WB settings.

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c	2010-02-15 20:25:09 UTC (rev 3236)
+++ trunk/src/rs-actions.c	2010-02-15 20:30:58 UTC (rev 3237)
@@ -488,6 +488,15 @@
 			if (rs->photo)
 				rs_settings_copy(rs->settings_buffer, mask, rs->photo->settings[rs->current_setting]); 
 
+			/* Update WB if wb_ascii is set */
+			if (mask & MASK_WB && rs->photo->settings[rs->current_setting]->wb_ascii)
+			{
+				if (g_strcmp0(rs->photo->settings[rs->current_setting]->wb_ascii, PRESET_WB_AUTO) == 0)
+					rs_photo_set_wb_auto(rs->photo, rs->current_setting);
+				else if (g_strcmp0(rs->photo->settings[rs->current_setting]->wb_ascii, PRESET_WB_CAMERA) == 0)
+					rs_photo_set_wb_from_camera(rs->photo, rs->current_setting);
+			}
+
 			gui_status_notify(_("Pasted settings"));
 		}
 		else




More information about the Rawstudio-commit mailing list