File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -656,12 +656,8 @@ QgsRectangle QgsWmsRenderContext::mapExtent() const
656
656
throw QgsBadRequestException ( QgsServiceException::QGIS_InvalidParameterValue,
657
657
mParameters [QgsWmsParameter::BBOX] );
658
658
}
659
- const double extentWidth = extent.width ();
660
- const double extentHeight = extent.height ();
661
- const int width = mapWidth ();
662
- const int height = mapHeight ();
663
- const double resolutionX = extentWidth / width;
664
- const double resolutionY = extentHeight / height;
659
+ const double resolutionX = extent.width () / mapWidth ();
660
+ const double resolutionY = extent.height () / mapHeight ();
665
661
const int tBuffer = mFlags & UseTileBuffer ? tileBuffer () : 0 ;
666
662
const double xMin = extent.xMinimum () - tBuffer * resolutionX;
667
663
const double yMin = extent.yMinimum () - tBuffer * resolutionY;
You can’t perform that action at this time.
0 commit comments