mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
fix #3245
git-svn-id: http://svn.osgeo.org/qgis/trunk@14860 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
8d80538c6b
commit
f2d4f0343e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user