Skip to content


fix dirty canvas on startup
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 12, 2010
1 parent 82b7b59 commit 10bdb1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvasmap.cpp
Original file line number Diff line number Diff line change
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 10bdb1c

Please sign in to comment.