fix dirty canvas on startup

git-svn-id: http://svn.osgeo.org/qgis/trunk@13721 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2010-06-12 17:10:42 +00:00
parent dfe9497072
commit 67b23e3a9b

View File

@ -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() );
}