Skip to content

Commit

Permalink
wxGUI/lmgr: fix add group layer during vector map editing (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Dec 3, 2020
1 parent c33698b commit b7bfe26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/lmgr/layertree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ def OnChangeSel(self, event):

if digitToolbar.GetLayer() == mapLayer:
self._setGradient('vdigit')
elif bgmap == mapLayer.GetName():
elif mapLayer and bgmap == mapLayer.GetName():
self._setGradient('bgmap')
else:
self._setGradient()
Expand Down

0 comments on commit b7bfe26

Please sign in to comment.