Skip to content
Permalink
Browse files

Merge pull request #6163 from elpaso/bugfix-17927-themes-group-visibi…

…lity

[bugfix] Ensure parent group visibility when apply theme
  • Loading branch information
elpaso committed Jan 25, 2018
2 parents f0e01d8 + b644447 commit 30043dbeb8ddd02a3159502243d448cd6c8d519c
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgsmapthemecollection.cpp
@@ -103,7 +103,11 @@ void QgsMapThemeCollection::applyThemeToLayer( QgsLayerTreeLayer *nodeLayer, Qgs
MapThemeLayerRecord layerRec;
bool isVisible = findRecordForLayer( nodeLayer->layer(), rec, layerRec );

nodeLayer->setItemVisibilityChecked( isVisible );
// Make sure the whole tree is visible
if ( isVisible )
nodeLayer->setItemVisibilityCheckedParentRecursive( isVisible );
else
nodeLayer->setItemVisibilityChecked( isVisible );

if ( !isVisible )
return;

0 comments on commit 30043db

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