Skip to content

Commit 72ee7e6

Browse files
author
rblazek
committed
dpi fix
git-svn-id: http://svn.osgeo.org/qgis/trunk@15699 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4d3cdec commit 72ee7e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ bool QgsRasterLayer::draw( QgsRenderContext& rendererContext )
897897

898898
// Provider mode: See if a provider key is specified, and if so use the provider instead
899899

900+
mDataProvider->setDpi( rendererContext.rasterScaleFactor() * 25.4 * rendererContext.scaleFactor() );
901+
900902
draw( theQPainter, myRasterViewPort, &theQgsMapToPixel );
901903

902904
delete myRasterViewPort;

0 commit comments

Comments
 (0)