Skip to content

Commit

Permalink
No context in 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 8, 2019
1 parent 3a26327 commit e6d8c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -2057,7 +2057,7 @@ namespace QgsWms
//and WIDTH / HEIGHT parameter is in the range allowed range
//WIDTH
int wmsMaxWidthProj = QgsServerProjectUtils::wmsMaxWidth( *mProject );
int wmsMaxWidthEnv = mContext.settings().wmsMaxWidth();
int wmsMaxWidthEnv = mSettings.wmsMaxWidth();
int wmsMaxWidth;
if ( wmsMaxWidthEnv != -1 && wmsMaxWidthProj != -1 )
{
Expand All @@ -2078,7 +2078,7 @@ namespace QgsWms

//HEIGHT
int wmsMaxHeightProj = QgsServerProjectUtils::wmsMaxHeight( *mProject );
int wmsMaxHeightEnv = mContext.settings().wmsMaxHeight();
int wmsMaxHeightEnv = mSettings.wmsMaxHeight();
int wmsMaxHeight;
if ( wmsMaxWidthEnv != -1 && wmsMaxWidthProj != -1 )
{
Expand Down

0 comments on commit e6d8c12

Please sign in to comment.