Index: libgthumb/jpegutils/jpegtran.c
===================================================================
RCS file: /cvs/gnome/gthumb/libgthumb/jpegutils/jpegtran.c,v
retrieving revision 1.2
diff -u -p -r1.2 jpegtran.c
--- libgthumb/jpegutils/jpegtran.c	8 Oct 2006 08:45:18 -0000	1.2
+++ libgthumb/jpegutils/jpegtran.c	18 Oct 2006 14:15:34 -0000
@@ -99,6 +99,7 @@ int
 jpegtran (char         *input_filename,
 	  char         *output_filename,
 	  JXFORM_CODE   transformation,
+	  gboolean		trim,
 	  GError      **error)
 {
 	struct jpeg_decompress_struct  srcinfo;
@@ -111,7 +112,7 @@ jpegtran (char         *input_filename,
 	FILE                          *output_file;
 
 	transformoption.transform = transformation;
-	transformoption.trim = FALSE;
+	transformoption.trim = trim;
 	transformoption.force_grayscale = FALSE;
 	
 	/* Initialize the JPEG decompression object with default error 
Index: libgthumb/jpegutils/jpegtran.h
===================================================================
RCS file: /cvs/gnome/gthumb/libgthumb/jpegutils/jpegtran.h,v
retrieving revision 1.2
diff -u -p -r1.2 jpegtran.h
--- libgthumb/jpegutils/jpegtran.h	8 Oct 2006 08:45:19 -0000	1.2
+++ libgthumb/jpegutils/jpegtran.h	18 Oct 2006 14:15:34 -0000
@@ -32,6 +32,7 @@
 int  jpegtran (char         *input_filename,
 	       char         *output_filename,
 	       JXFORM_CODE   transformation,
+	       gboolean		trim,
 	       GError      **error);
 
 #endif /* JPEGTRAN_H */
Index: src/rotation-utils.c
===================================================================
RCS file: /cvs/gnome/gthumb/src/rotation-utils.c,v
retrieving revision 1.9
diff -u -p -r1.9 rotation-utils.c
--- src/rotation-utils.c	12 Oct 2006 19:15:12 -0000	1.9
+++ src/rotation-utils.c	18 Oct 2006 14:15:35 -0000
@@ -144,7 +144,7 @@ apply_transformation_jpeg (GtkWindow    
 		break;
 	}
 
-	if (jpegtran ((char*)path, tmp, transf, &err) != 0) {
+	if (jpegtran ((char*)path, tmp, transf, FALSE, &err) != 0) {
 		g_free (tmp);
 		if (err != NULL) 
 			_gtk_error_dialog_from_gerror_run (win, &err);
