Skip to content
Permalink
Browse files

Show layer visibility in GetProjectSettings

  • Loading branch information
Marco Hugentobler
Marco Hugentobler committed Sep 7, 2012
1 parent 2c897f7 commit 8ce752eeb7c6e889f4d5d1438ec0b8c464860a77
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/mapserver/qgsprojectparser.cpp
@@ -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" )
{

0 comments on commit 8ce752e

Please sign in to comment.
You can’t perform that action at this time.