Skip to content

Commit 36a8177

Browse files
committedJun 14, 2019
[Bugfix][Server] GetContext: Fix hidden attribute value based on tree layer visibility
1 parent 3ed9a53 commit 36a8177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/server/services/wms/qgswmsgetcontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,11 @@ namespace QgsWms
284284
// visibility
285285
if ( treeLayer->itemVisibilityChecked() )
286286
{
287-
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
287+
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
288288
}
289289
else
290290
{
291-
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
291+
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
292292
}
293293

294294
// layer group

0 commit comments

Comments
 (0)
Please sign in to comment.