Skip to content

Commit

Permalink
wxGUI: fix d.out.file command parsing with --overwrite (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa committed Jan 30, 2021
1 parent 6e0d4b8 commit 4165830
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/wxpython/mapdisp/frame.py
Expand Up @@ -669,7 +669,11 @@ def DOutFile(self, command, callback=None):
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'
Expand Down

0 comments on commit 4165830

Please sign in to comment.