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 authored and petrasovaa committed Jun 4, 2020
1 parent 8c28dad commit cb8f668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/core/render.py
Expand Up @@ -1348,7 +1348,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 cb8f668

Please sign in to comment.