Skip to content

Commit

Permalink
Fix #10720
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent authored and rldhont committed Aug 29, 2014
1 parent 86e350c commit e973c66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mapserver/qgswmsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ QList<QgsMapLayer*> QgsWMSProjectParser::mapLayerFromStyle( const QString& lName
QHash< QString, QDomElement >::const_iterator pLayerNameIt = pLayerByName.find( lName );
if ( pLayerNameIt != pLayerByName.constEnd() )
{
pp.layerFromLegendLayer( pLayerNameIt.value(), layers, useCache );
break;
return ( QList<QgsMapLayer*>() << pp.createLayerFromElement( pLayerNameIt.value(), useCache ) );
}

const QList<QDomElement>& legendGroupElements = pp.legendGroupElements();
Expand Down

0 comments on commit e973c66

Please sign in to comment.