File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1138,10 +1138,10 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
1138
1138
int QgsWMSServer::readLayersAndStyles ( QStringList& layersList, QStringList& stylesList ) const
1139
1139
{
1140
1140
// get layer and style lists from the parameters trying LAYERS and LAYER as well as STYLE and STYLES for GetLegendGraphic compatibility
1141
- layersList = mParameterMap .value ( " LAYER" ).split ( " ," );
1142
- layersList = layersList + mParameterMap .value ( " LAYERS" ).split ( " ," );
1143
- stylesList = mParameterMap .value ( " STYLE" ).split ( " ," );
1144
- stylesList = stylesList + mParameterMap .value ( " STYLES" ).split ( " ," );
1141
+ layersList = mParameterMap .value ( " LAYER" ).split ( " ," , QString::SkipEmptyParts );
1142
+ layersList = layersList + mParameterMap .value ( " LAYERS" ).split ( " ," , QString::SkipEmptyParts );
1143
+ stylesList = mParameterMap .value ( " STYLE" ).split ( " ," , QString::SkipEmptyParts );
1144
+ stylesList = stylesList + mParameterMap .value ( " STYLES" ).split ( " ," , QString::SkipEmptyParts );
1145
1145
1146
1146
return 0 ;
1147
1147
}
You can’t perform that action at this time.
0 commit comments