Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "fix export zoom percentage bug"
This reverts commit 2dfb647.
  • Loading branch information
samizdatco committed May 23, 2025
commit 46111c5fe64d061c3d233ab71227ebf74b013553
15 changes: 1 addition & 14 deletions plotdevice/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,6 @@ def beginExport(self, kind):
format = self.image['format']
accessory = self.imageAccessory

# Set the zoom value so that UI reflects the previously stored value
self.imageZoom.setStringValue_("%i%%" % self.image['zoom'])

if self.image['single']:
self.imageFormat.selectItemAtIndex_(1)
else:
Expand Down Expand Up @@ -445,17 +442,7 @@ def exportPanelDidEnd_returnCode_contextInfo_(self, panel, returnCode, context):
kind, opts = 'movie', self.movieState()
else:
kind, opts = 'image', self.imageState()

# Convert zoom multiplier back to percentage before saving
saved_opts = dict(opts)
if 'zoom' in saved_opts:
saved_opts['zoom'] = saved_opts['zoom'] * 100

# Save the modified options (with percentage zoom)
setattr(self, kind, saved_opts)
print("Export options:", saved_opts)

# Continue with the export using the original options (with decimal zoom)
setattr(self, kind, dict(opts)) # save the options for next time
self.last = os.path.split(fname) # save the path we exported to
self.script.exportInit(kind, fname, opts)

Expand Down