Skip to content

Commit

Permalink
wxGUI/nviz: fix update list of surface in vector page during delete c…
Browse files Browse the repository at this point in the history
…onstant surface (#881)
  • Loading branch information
tmszi committed Aug 9, 2020
1 parent a4ec6fa commit 4b97392
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/wxpython/nviz/tools.py
Expand Up @@ -2714,7 +2714,9 @@ def OnDeleteConstant(self, event):
for vtype in ('points', 'lines'):
checklist = self.FindWindowById(
self.win['vector'][vtype]['surface'])
checklist.Delete(checklist.FindString(name))
item = checklist.FindString(name)
if item > wx.NOT_FOUND:
checklist.Delete(item)

if self.mapDisplay.IsAutoRendered():
self.mapWindow.Refresh(False)
Expand Down

0 comments on commit 4b97392

Please sign in to comment.