Merge pull request #9777 from mbernasocchi/fix_maxwmswidth

[server] fix wmsMaxHeightEnv leftover code
This commit is contained in:
Marco Bernasocchi 2019-04-12 09:45:44 +02:00 committed by GitHub
commit a0a8e49e8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1905,7 +1905,7 @@ namespace QgsWms
int wmsMaxHeightProj = QgsServerProjectUtils::wmsMaxHeight( *mProject );
int wmsMaxHeightEnv = mContext.settings().wmsMaxHeight();
int wmsMaxHeight;
if ( wmsMaxWidthEnv != -1 && wmsMaxWidthProj != -1 )
if ( wmsMaxHeightEnv != -1 && wmsMaxHeightProj != -1 )
{
// both are set, so we take the more conservative one
wmsMaxHeight = std::min( wmsMaxHeightProj, wmsMaxHeightEnv );