Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Bugfix][Server] GetContext: Fix hidden attribute value based on tree…
… layer visibility
  • Loading branch information
rldhont committed Jun 14, 2019
1 parent 5347eb7 commit c24e141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsgetcontext.cpp
Expand Up @@ -282,11 +282,11 @@ namespace QgsWms
// visibility
if ( treeLayer->itemVisibilityChecked() )
{
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
}
else
{
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
}

// layer group
Expand Down

0 comments on commit c24e141

Please sign in to comment.