Skip to content
Permalink
Browse files
fix dirty canvas on startup
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13721 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 12, 2010
1 parent 82b7b59 commit 10bdb1c310183004e1a31a48c7c0d2ed8aab19f0
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsmapcanvasmap.cpp
@@ -47,6 +47,7 @@ void QgsMapCanvasMap::resize( QSize size )
prepareGeometryChange(); // to keep QGraphicsScene indexes up to date on size change

mPixmap = QPixmap( size );
mPixmap.fill( mBgColor.rgb() );
mImage = QImage( size, QImage::Format_RGB32 ); // temporary image - build it here so it is available when switching from QPixmap to QImage rendering
mCanvas->mapRenderer()->setOutputSize( size, mPixmap.logicalDpiX() );
}

0 comments on commit 10bdb1c

Please sign in to comment.