Explorar o código

wxGUI/lmgr: fix add group layer during vector map editing (#1109)

Tomas Zigo %!s(int64=4) %!d(string=hai) anos
pai
achega
f79b13ab09
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/lmgr/layertree.py

+ 1 - 1
gui/wxpython/lmgr/layertree.py

@@ -1783,7 +1783,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
 
             if digitToolbar.GetLayer() == mapLayer:
                 self._setGradient('vdigit')
-            elif bgmap == mapLayer.GetName():
+            elif mapLayer and bgmap == mapLayer.GetName():
                 self._setGradient('bgmap')
             else:
                 self._setGradient()