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
jef committed Dec 7, 2010
1 parent 5690f5a commit 934eac0ca3a23bea1963ff6da44db985a0eff4a9
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/wms/qgswmsprovider.cpp
@@ -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.
You can’t perform that action at this time.