mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Merge pull request #9777 from mbernasocchi/fix_maxwmswidth
[server] fix wmsMaxHeightEnv leftover code
This commit is contained in:
commit
a0a8e49e8f
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user