We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 952bc02 commit e4d6bbfCopy full SHA for e4d6bbf
src/server/services/wms/qgswmsrenderer.cpp
@@ -1219,7 +1219,7 @@ namespace QgsWms
1219
{
1220
mapExtent.invert();
1221
}
1222
- if ( !mapExtent.isEmpty() && height > 0 )
+ if ( !mapExtent.isEmpty() && height > 0 && width > 0 )
1223
1224
double mapWidthHeightRatio = mapExtent.width() / mapExtent.height();
1225
double imageWidthHeightRatio = ( double )width / ( double )height;
0 commit comments