Update src/server/services/wms/qgswmsrenderer.cpp

Co-authored-by: David Marteau <dmarteau@3liz.com>
This commit is contained in:
Alessandro Pasotti 2021-10-30 12:55:51 +02:00 committed by GitHub
parent 6f8bed820b
commit 96187b20c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -377,7 +377,7 @@ namespace QgsWms
} }
const int nAtlasFeatures = atlasPk.size() / pkIndexesSize; const int nAtlasFeatures = atlasPk.size() / pkIndexesSize;
if ( nAtlasFeatures * pkIndexesSize != atlasPk.size() ) //Test is atlasPk.size() is a multiple of pkIndexesSize. Bail out if not if ( nAtlasFeatures * pkIndexesSize != atlasPk.size() ) //Test if atlasPk.size() is a multiple of pkIndexesSize. Bail out if not
{ {
throw QgsBadRequestException( QgsServiceException::QGIS_InvalidParameterValue, throw QgsBadRequestException( QgsServiceException::QGIS_InvalidParameterValue,
QStringLiteral( "Wrong number of ATLAS_PK parameters" ) ); QStringLiteral( "Wrong number of ATLAS_PK parameters" ) );