From b7bfe263eaecea0df360565a4bc8bb292b838831 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Thu, 3 Dec 2020 05:46:29 +0100 Subject: [PATCH] wxGUI/lmgr: fix add group layer during vector map editing (#1109) --- gui/wxpython/lmgr/layertree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/wxpython/lmgr/layertree.py b/gui/wxpython/lmgr/layertree.py index 11ca2a0d275..bdf1077ceab 100644 --- a/gui/wxpython/lmgr/layertree.py +++ b/gui/wxpython/lmgr/layertree.py @@ -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()