Skip to content

Commit

Permalink
Fix generation of empty layer/style entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed May 17, 2013
1 parent 35de29d commit d888728
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mapserver/qgswmsserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,10 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
int QgsWMSServer::readLayersAndStyles( QStringList& layersList, QStringList& stylesList ) const
{
//get layer and style lists from the parameters trying LAYERS and LAYER as well as STYLE and STYLES for GetLegendGraphic compatibility
layersList = mParameterMap.value( "LAYER" ).split( "," );
layersList = layersList + mParameterMap.value( "LAYERS" ).split( "," );
stylesList = mParameterMap.value( "STYLE" ).split( "," );
stylesList = stylesList + mParameterMap.value( "STYLES" ).split( "," );
layersList = mParameterMap.value( "LAYER" ).split( ",", QString::SkipEmptyParts );
layersList = layersList + mParameterMap.value( "LAYERS" ).split( ",", QString::SkipEmptyParts );
stylesList = mParameterMap.value( "STYLE" ).split( ",", QString::SkipEmptyParts );
stylesList = stylesList + mParameterMap.value( "STYLES" ).split( ",", QString::SkipEmptyParts );

return 0;
}
Expand Down

0 comments on commit d888728

Please sign in to comment.