Skip to content

Commit

Permalink
gui(core.layerlist): Fix returning active layers in GetSelectedLayers…
Browse files Browse the repository at this point in the history
…() (#4913)
  • Loading branch information
echoix authored Jan 8, 2025
1 parent 44d678d commit 4558bb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gui/wxpython/core/layerlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def GetSelectedLayers(self, activeOnly=True):
layers = []
for layer in self._list:
if layer.IsSelected():
if activeOnly and layer.IsActive():
layers.append(layer)
if activeOnly:
if layer.IsActive():
layers.append(layer)
else:
layers.append(layer)
return layers
Expand Down

0 comments on commit 4558bb8

Please sign in to comment.