Skip to content

Commit 10bdb1c

Browse files
author
jef
committed
fix dirty canvas on startup
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13721 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 82b7b59 commit 10bdb1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gui/qgsmapcanvasmap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void QgsMapCanvasMap::resize( QSize size )
4747
prepareGeometryChange(); // to keep QGraphicsScene indexes up to date on size change
4848

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

0 commit comments

Comments
 (0)