Browse Source

wxGUI: fix d.out.file command parsing with --overwrite (#1284)

Anna Petrasova 4 years ago
parent
commit
384187868b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      gui/wxpython/mapdisp/frame.py

+ 5 - 1
gui/wxpython/mapdisp/frame.py

@@ -683,7 +683,11 @@ class MapFrame(SingleMapFrame):
             return
         width, height = self.MapWindow.GetClientSize()
         for param in command[1:]:
-            p, val = param.split('=')
+            try:
+                p, val = param.split('=')
+            except ValueError:
+                # --overwrite
+                continue
             if p == 'format':  # must be there
                 if self.IsPaneShown('3d'):
                     extType = 'ppm'