Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show layer visibility in GetProjectSettings
  • Loading branch information
Marco Hugentobler committed Sep 7, 2012
1 parent 2c897f7 commit 8ce752e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Expand Up @@ -229,8 +229,12 @@ void QgsProjectParser::addLayers( QDomDocument &doc,
for ( int i = 0; i < legendChildren.size(); ++i )
{
QDomElement currentChildElem = legendChildren.at( i ).toElement();

QDomElement layerElem = doc.createElement( "Layer" );
if ( fullProjectSettings )
{
layerElem.setAttribute( "visible", !( currentChildElem.attribute( "checked" ) == "Qt::Unchecked" ) );
}


if ( currentChildElem.tagName() == "legendgroup" )
{
Expand Down

0 comments on commit 8ce752e

Please sign in to comment.