Author: post
Date: 2011-03-06 22:05:30 +0100 (Sun, 06 Mar 2011)
New Revision: 3847
Modified:
trunk/src/rs-actions.c
Log:
Load image rotation when setting WB, so it isn't changed if images have not
been opened before.
Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c 2011-03-06 20:50:35 UTC (rev 3846)
+++ trunk/src/rs-actions.c 2011-03-06 21:05:30 UTC (rev 3847)
@@ -746,6 +746,19 @@
/* This is nothing but a hack around rs_cache_*() */
photo = rs_photo_new();
photo->filename = g_strdup(g_list_nth_data(selected,
cur));
+ if (rs_metadata_load(photo->metadata, photo->filename))
+ {
+ /* Rotate photo inplace */
+ switch (photo->metadata->orientation)
+ {
+ case 90:
ORIENTATION_90(photo->orientation);
+ break;
+ case 180:
ORIENTATION_180(photo->orientation);
+ break;
+ case 270:
ORIENTATION_270(photo->orientation);
+ break;
+ }
+ }
load_mask = rs_cache_load(photo);
rs_settings_set_wb(photo->settings[current_setting],
0.0, 0.0, wb_ascii);
rs_cache_save(photo, load_mask | MASK_WB);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit