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 7a566cf commit 3841878
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/wxpython/mapdisp/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,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 3841878

Please sign in to comment.