Skip to content

Commit

Permalink
fix #3245
Browse files Browse the repository at this point in the history
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.
5 changes: 3 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 934eac0

Please sign in to comment.