Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix group layer rendering (#52769)
  • Loading branch information
YoannQDQ authored and github-actions[bot] committed Apr 27, 2023
1 parent 0a6b022 commit 4a566e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/layertree/qgslayertreemapcanvasbridge.cpp
Expand Up @@ -155,9 +155,9 @@ void QgsLayerTreeMapCanvasBridge::setCanvasLayers( QgsLayerTreeNode *node, QList
const QList<QgsLayerTreeNode *> children = node->children();
for ( QgsLayerTreeNode *child : children )
{
if ( QgsLayerTreeGroup *group = QgsLayerTree::toGroup( node ) )
if ( QgsLayerTree::isGroup( child ) )
{
if ( QgsGroupLayer *groupLayer = group->groupLayer() )
if ( QgsGroupLayer *groupLayer = QgsLayerTree::toGroup( child )->groupLayer() )
{
canvasLayers << groupLayer;
continue;
Expand Down

0 comments on commit 4a566e8

Please sign in to comment.