← Back to team overview

phatch-dev team mailing list archive

[Merge] lp:~andreambu/phatch/bugfixes into lp:phatch

 

Andrea Ambu has proposed merging lp:~andreambu/phatch/bugfixes into lp:phatch.

    Requested reviews:
    stani (stani)
Related bugs:
  #516763 Lossless rotate doesn't work
  https://bugs.launchpad.net/bugs/516763

-- 
https://code.launchpad.net/~andreambu/phatch/bugfixes/+merge/19263
Your team Phatch Developers is subscribed to branch lp:phatch.
=== modified file 'phatch/actions/lossless_jpeg.py'
--- phatch/actions/lossless_jpeg.py	2009-10-02 03:02:08 +0000
+++ phatch/actions/lossless_jpeg.py	2010-02-13 11:48:17 +0000
@@ -272,14 +272,12 @@
     def call(self,photo, info, utility):
         format = info['format']
         if format == 'JPEG':
-            super(JpegUtility, self).execute(photo)
+            system.call(utility.get_command_line(self,photo, info['path'],
+                self.get_lossless_filename(photo,info)))
         else:
             raise Exception('%s:\n%s' \
                 % (LOSSLESS_JPEG_FORMAT_ERROR%format, info['path']))
 
-        system.call(utility.get_command_line(self,photo, info['path'],
-            self.get_lossless_filename(photo,info)))
-
     def get_relevant_field_labels(self):
         return super(LossLessSaveUtilityMixin,self)\
             .get_relevant_field_labels(['File Name','In'])


Follow ups