Skip to content

Commit a416f4e

Browse files
committedNov 22, 2017
Fix obsolete call of addQueryItem on QUrl in server
1 parent b058df7 commit a416f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/services/wms/qgswmsgetcapabilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ namespace QgsWms
11541154
layerName = currentLayer->id();
11551155
else if ( !currentLayer->shortName().isEmpty() )
11561156
layerName = currentLayer->shortName();
1157-
QUrl mapUrl( hrefString );
1157+
QUrlQuery mapUrl( hrefString );
11581158
mapUrl.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WMS" ) );
11591159
mapUrl.addQueryItem( QStringLiteral( "VERSION" ), version );
11601160
mapUrl.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "GetLegendGraphic" ) );

0 commit comments

Comments
 (0)
Please sign in to comment.