Author: akv
Date: 2012-04-18 23:51:19 +0200 (Wed, 18 Apr 2012)
New Revision: 4186

Modified:
   branches/4175-enfuse/src/rs-enfuse.c
Log:
Added option to enable or disable extending of exposures..

Modified: branches/4175-enfuse/src/rs-enfuse.c
===================================================================
--- branches/4175-enfuse/src/rs-enfuse.c        2012-04-18 21:25:41 UTC (rev 
4185)
+++ branches/4175-enfuse/src/rs-enfuse.c        2012-04-18 21:51:19 UTC (rev 
4186)
@@ -192,15 +192,19 @@
   gchar *last = NULL;
   gchar *align_options = NULL;
   gchar *enfuse_options = g_strdup("-d 16");
+  gboolean extend = FALSE;
 
+  if (num_selected == 1)
+    extend = TRUE;
+
   if (g_list_length(files))
     {
       for(i=0; i<num_selected; i++)
        {
          name = (gchar*) g_list_nth_data(files, i);
-         if (i == 0) /* FIXME: need to find the darkest */
+         if (i == 0 && extend) /* FIXME: need to find the darkest */
            first = g_strdup(name);
-         if (i == num_selected-1) /* FIXME: need to find the brightest */
+         if (i == num_selected-1 && extend) /* FIXME: need to find the 
brightest */
            last = g_strdup(name); 
          file = g_malloc(sizeof(char)*strlen(name));
          sscanf(g_path_get_basename(name), "%[^.]", file);


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

Reply via email to