Author: post
Date: 2011-04-11 13:59:38 +0200 (Mon, 11 Apr 2011)
New Revision: 3976

Modified:
   trunk/src/rs-tethered-shooting.c
Log:
Don't reset orientation, when copying settings in tethered shooting.

Modified: trunk/src/rs-tethered-shooting.c
===================================================================
--- trunk/src/rs-tethered-shooting.c    2011-04-07 21:38:58 UTC (rev 3975)
+++ trunk/src/rs-tethered-shooting.c    2011-04-11 11:59:38 UTC (rev 3976)
@@ -531,6 +531,19 @@
        /* Paste settings */
        if (copy_settings)
        {
+               /* Make sure we rotate this right */
+               RSMetadata *metadata = 
rs_metadata_new_from_file(photo->filename);
+               switch (metadata->orientation)
+               {
+                       case 90: ORIENTATION_90(photo->orientation);
+                               break;
+                       case 180: ORIENTATION_180(photo->orientation);
+                               break;
+                       case 270: ORIENTATION_270(photo->orientation);
+                               break;
+               }
+               g_object_unref(metadata);
+
                for (i = 0; i < RS_NUM_SETTINGS; i++)
                {
                        rs_settings_copy(settings_buffer[i], MASK_ALL, 
photo->settings[i]);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to