Skip to content

Commit

Permalink
wxGUI/lmgr: fix get layer name if layer is group (#1066)
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
  • Loading branch information
2 people authored and neteler committed Nov 22, 2020
1 parent 0860312 commit c010de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/lmgr/giface.py
Expand Up @@ -44,7 +44,7 @@ def __dir__(self):
return self._pydata[0].keys()

def __str__(self):
return '' if self.maplayer.name is None else self.maplayer.name
return '' if (self.maplayer is None or self.maplayer.name is None) else self.maplayer.name


class LayerList(object):
Expand Down

0 comments on commit c010de5

Please sign in to comment.