Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
swtich to QStringList
  • Loading branch information
ianturton committed Oct 7, 2020
1 parent a775957 commit 1bce971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -3026,7 +3026,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPointXY &point, QgsRa
{
// rewrite the URL if the one in the capabilities document is incorrect
// strip every thing after the ? from the base url
const QList parts = mSettings.mBaseUrl.split( QRegularExpression( "\\?" ) );
const QStringList parts = mSettings.mBaseUrl.split( QRegularExpression( "\\?" ) );
const QString base = parts.isEmpty() ? mSettings.mBaseUrl : parts.first();
// and strip everything before the `rest` element (at least for GeoServer)
const int index = url.length() - url.lastIndexOf( QStringLiteral( "rest" ) ) + 1; // +1 for the /
Expand Down

0 comments on commit 1bce971

Please sign in to comment.