Skip to content

Commit ab07e64

Browse files
authored
Merge pull request matplotlib#27718 from meeseeksmachine/auto-backport-of-pr-27716-on-v3.8.x
Backport PR matplotlib#27716 on branch v3.8.x (fix default image format in gtk4 savefig dialog)
2 parents 88a84eb + 69b8b0b commit ab07e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_gtk4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def save_figure(self, *args):
361361
formats = [formats[default_format], *formats[:default_format],
362362
*formats[default_format+1:]]
363363
dialog.add_choice('format', 'File format', formats, formats)
364-
dialog.set_choice('format', formats[default_format])
364+
dialog.set_choice('format', formats[0])
365365

366366
dialog.set_current_folder(Gio.File.new_for_path(
367367
os.path.expanduser(mpl.rcParams['savefig.directory'])))

0 commit comments

Comments
 (0)