Skip to content

Commit

Permalink
Fix for problem with mix of toplevel layers and nested layers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13798 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jun 24, 2010
1 parent b670eeb commit d254acb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -1716,6 +1716,11 @@ void QgsWmsProvider::parseLayer( QDomElement const & e, QgsWmsLayerProperty& lay
mLayerParentNames[ layerProperty.orderId ] = QStringList() << layerProperty.name << layerProperty.title << layerProperty.abstract;
}

if ( !parentProperty )
{
layerProperty.layer.clear();
}

// QgsDebugMsg("exiting.");
}

Expand Down

0 comments on commit d254acb

Please sign in to comment.