Skip to content
Permalink
Browse files

Fix generation of empty layer/style entries

  • Loading branch information
mhugent committed May 17, 2013
1 parent 35de29d commit d88872806ff6d380e396dd19fabdd619566e1ad7
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/mapserver/qgswmsserver.cpp
@@ -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;
}

0 comments on commit d888728

Please sign in to comment.
You can’t perform that action at this time.