Skip to content

Commit

Permalink
wxGUI rendering: when deleting layer check if .legrow file exists (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jun 4, 2020
1 parent dbf903e commit cac163a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/core/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,8 @@ def DeleteLayer(self, layer, overlay=False):
os.remove(f)

if layer.GetType() in ('vector', 'thememap'):
os.remove(layer._legrow)
if os.path.isfile(layer._legrow):
os.remove(layer._legrow)

list.remove(layer)

Expand Down

0 comments on commit cac163a

Please sign in to comment.