Skip to content
Permalink
Browse files

Fixes regression by adding visible tag to layer's node

  • Loading branch information
pblottiere committed Oct 18, 2017
1 parent d40447e commit 3c9e7190eea0d054094c67f963954dba578113b4
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -828,6 +828,12 @@ namespace QgsWms
{
QgsLayerTreeNode *treeNode = layerTreeGroupChildren.at( i );
QDomElement layerElem = doc.createElement( QStringLiteral( "Layer" ) );

if ( projectSettings )
{
layerElem.setAttribute( QStringLiteral( "visible" ), treeNode->isVisible() );
}

if ( treeNode->nodeType() == QgsLayerTreeNode::NodeGroup )
{
QgsLayerTreeGroup *treeGroupChild = static_cast<QgsLayerTreeGroup *>( treeNode );
@@ -840,7 +846,6 @@ namespace QgsWms

if ( projectSettings )
{
layerElem.setAttribute( QStringLiteral( "visible" ), treeGroupChild->isVisible() );
layerElem.setAttribute( QStringLiteral( "mutuallyExclusive" ), treeGroupChild->isMutuallyExclusive() );
}

0 comments on commit 3c9e719

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