Skip to content

Commit

Permalink
fix dirty canvas on startup
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13721 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 12, 2010
1 parent dfe9497 commit 67b23e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvasmap.cpp
Expand Up @@ -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() );
}
Expand Down

0 comments on commit 67b23e3

Please sign in to comment.