Skip to content

Commit

Permalink
[wmst] Fix bad allocation exception with high resolution tiled servers (
Browse files Browse the repository at this point in the history
fixes #30634)
  • Loading branch information
nirvn committed Sep 17, 2019
1 parent 6fd7d4b commit 9f47916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -660,7 +660,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in

// if we know both source and output DPI, let's scale the tiles
if ( mDpi != -1 && mTileLayer->dpi != -1 )
vres *= mDpi / mTileLayer->dpi;
vres *= static_cast<double>( mDpi ) / mTileLayer->dpi;

// find nearest resolution
tm = mTileMatrixSet->findNearestResolution( vres );
Expand Down

0 comments on commit 9f47916

Please sign in to comment.