Skip to content

Commit

Permalink
in QgsWmsProvider: clear the style list after one top level <Layer> e…
Browse files Browse the repository at this point in the history
…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 42d814e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 42d814e

Please sign in to comment.