Skip to content
Permalink
Browse files
in QgsWmsProvider: clear the style list after one top level <Layer> e…
…lement 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@5582 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 10, 2006
1 parent 91f2348 commit 42d814ec16ab92fb834d83ae3686ccc5ca613077
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/wms/qgswmsprovider.cpp
@@ -1662,6 +1662,12 @@ void QgsWmsProvider::parseLayer(QDomElement const & e, QgsWmsLayerProperty& laye

// Insert into the local class' registry
layersSupported.push_back(layerProperty);

//if there are several <Layer> elements without a parent layer, the style list needs to be cleared
if(atleaf)
{
layerProperty.style.clear();
}
}

#ifdef QGISDEBUG

0 comments on commit 42d814e

Please sign in to comment.