Skip to content

Commit a42e09f

Browse files
committedJun 5, 2019
troopa's style
1 parent d197fd5 commit a42e09f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/server/services/wms/qgswmsrendercontext.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,8 @@ QgsRectangle QgsWmsRenderContext::mapExtent() const
656656
throw QgsBadRequestException( QgsServiceException::QGIS_InvalidParameterValue,
657657
mParameters[QgsWmsParameter::BBOX] );
658658
}
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();
665661
const int tBuffer = mFlags & UseTileBuffer ? tileBuffer() : 0;
666662
const double xMin = extent.xMinimum() - tBuffer * resolutionX;
667663
const double yMin = extent.yMinimum() - tBuffer * resolutionY;

0 commit comments

Comments
 (0)
Please sign in to comment.