Skip to content
Permalink
Browse files

Revert "Do not return invalid layers from findLayers()"

This reverts commit 2f2221a.
  • Loading branch information
elpaso committed Jun 17, 2018
1 parent 184b0ef commit cd782f277b0ee2205532b3e200d6efeb5cbce4f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreegroup.cpp
@@ -221,7 +221,7 @@ QList<QgsLayerTreeLayer *> QgsLayerTreeGroup::findLayers() const
QList<QgsLayerTreeLayer *> list;
Q_FOREACH ( QgsLayerTreeNode *child, mChildren )
{
if ( QgsLayerTree::isLayer( child ) && QgsLayerTree::toLayer( child )->layer( ) )
if ( QgsLayerTree::isLayer( child ) )
list << QgsLayerTree::toLayer( child );
else if ( QgsLayerTree::isGroup( child ) )
list << QgsLayerTree::toGroup( child )->findLayers();

0 comments on commit cd782f2

Please sign in to comment.
You can’t perform that action at this time.