Skip to content

Commit

Permalink
[Bugfix][Server] GetContext: Fix hidden attribute value based on tree…
Browse files Browse the repository at this point in the history
… layer visibility
  • Loading branch information
rldhont committed Jun 14, 2019
1 parent 3ed9a53 commit 36a8177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsgetcontext.cpp
Expand Up @@ -284,11 +284,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 36a8177

Please sign in to comment.