Skip to content

Commit

Permalink
fix regression: saving of stretched image fails
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelly committed Jan 11, 2024
1 parent 77a1e75 commit f528f13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions graxpert/application/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,12 @@ def on_save_stretched_request(self, event):

try:
if self.images["Processed"] is None:
self.images["Original"].save_stretched(dir, self.prefs.saveas_option)
self.images["Original"].save_stretched(dir, self.prefs.saveas_option, self.prefs.stretch_option)
else:
self.images["Processed"].save_stretched(dir, self.prefs.saveas_option)
except:
self.images["Processed"].save_stretched(dir, self.prefs.saveas_option, self.prefs.stretch_option)
except Exception as e:
eventbus.emit(AppEvents.SAVE_ERROR)
logging.exception(e)
messagebox.showerror("Error", _("Error occured when saving the image."))

eventbus.emit(AppEvents.SAVE_END)
Expand Down

0 comments on commit f528f13

Please sign in to comment.