Skip to content

Commit c24e141

Browse files
committedJun 14, 2019
[Bugfix][Server] GetContext: Fix hidden attribute value based on tree layer visibility
1 parent 5347eb7 commit c24e141

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
@@ -282,11 +282,11 @@ namespace QgsWms
282282
// visibility
283283
if ( treeLayer->itemVisibilityChecked() )
284284
{
285-
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
285+
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
286286
}
287287
else
288288
{
289-
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "false" ) );
289+
layerElem.setAttribute( QStringLiteral( "hidden" ), QStringLiteral( "true" ) );
290290
}
291291

292292
// layer group

0 commit comments

Comments
 (0)
Please sign in to comment.