Skip to content
Permalink
Browse files
fix #3245
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14860 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 7, 2010
1 parent 5690f5a commit 934eac0
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1678,7 +1678,7 @@ void QgsWmsProvider::parseLayer( QDomElement const & e, QgsWmsLayerProperty& lay
mLayerParents[ layerProperty.orderId ] = parentProperty->orderId;
}

if ( layerProperty.layer.empty() )
if ( !layerProperty.name.isEmpty() )
{
// We have all the information we need to properly evaluate a layer definition
// TODO: Save this somewhere
@@ -1721,7 +1721,8 @@ void QgsWmsProvider::parseLayer( QDomElement const & e, QgsWmsLayerProperty& lay
layerProperty.style.clear();
}
}
else

if ( !layerProperty.layer.empty() )
{
mLayerParentNames[ layerProperty.orderId ] = QStringList() << layerProperty.name << layerProperty.title << layerProperty.abstract;
}

0 comments on commit 934eac0

Please sign in to comment.