Browse Source

wxGUI/animation: fix validation of extension of exported file (#907)

Tomas Zigo 4 years ago
parent
commit
cc4acd24c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/animation/dialogs.py

+ 1 - 1
gui/wxpython/animation/dialogs.py

@@ -1593,7 +1593,7 @@ class ExportDialog(wx.Dialog):
             GError(parent=self, message=_("Export file is missing."))
             return False
         else:
-            if file_path.endswith(file_postfix):
+            if not file_path.endswith(file_postfix):
                 filebrowsebtn.SetValue(file_path + file_postfix)
                 file_path += file_postfix