Skip to content
Permalink
Browse files

Fix obsolete call of addQueryItem on QUrl in server

  • Loading branch information
pblottiere committed Nov 16, 2017
1 parent b058df7 commit a416f4e30c49d57c32c8bf93c08756142e5f1ada
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/services/wms/qgswmsgetcapabilities.cpp
@@ -1154,7 +1154,7 @@ namespace QgsWms
layerName = currentLayer->id();
else if ( !currentLayer->shortName().isEmpty() )
layerName = currentLayer->shortName();
QUrl mapUrl( hrefString );
QUrlQuery mapUrl( hrefString );
mapUrl.addQueryItem( QStringLiteral( "SERVICE" ), QStringLiteral( "WMS" ) );
mapUrl.addQueryItem( QStringLiteral( "VERSION" ), version );
mapUrl.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "GetLegendGraphic" ) );

0 comments on commit a416f4e

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