Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c0c30a

Browse files
committed
Fix bug when clicking "Cancel" in the save dialog in TkAgg backend.
(Thanks Michael Zell). svn path=/trunk/matplotlib/; revision=4267
1 parent 9c536fb commit 7c0c30a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_tkagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def save_figure(self):
680680
defaultextension = self.canvas.get_default_filetype()
681681
)
682682

683-
if fname == "" :
683+
if fname == "" or fname == ():
684684
return
685685
else:
686686
try:

0 commit comments

Comments
 (0)