Skip to content

Commit 196f610

Browse files
author
mhugent
committedJul 10, 2006
in QgsWmsProvider: clear the style list after one top level <Layer> element such that the layer/style list is also correct if there are several <Layer> elements without a parent layer
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5582 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,12 @@ void QgsWmsProvider::parseLayer(QDomElement const & e, QgsWmsLayerProperty& laye
16621662

16631663
// Insert into the local class' registry
16641664
layersSupported.push_back(layerProperty);
1665+
1666+
//if there are several <Layer> elements without a parent layer, the style list needs to be cleared
1667+
if(atleaf)
1668+
{
1669+
layerProperty.style.clear();
1670+
}
16651671
}
16661672

16671673
#ifdef QGISDEBUG

0 commit comments

Comments
 (0)
Please sign in to comment.