We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b7b59 commit 10bdb1cCopy full SHA for 10bdb1c
src/gui/qgsmapcanvasmap.cpp
@@ -47,6 +47,7 @@ void QgsMapCanvasMap::resize( QSize size )
47
prepareGeometryChange(); // to keep QGraphicsScene indexes up to date on size change
48
49
mPixmap = QPixmap( size );
50
+ mPixmap.fill( mBgColor.rgb() );
51
mImage = QImage( size, QImage::Format_RGB32 ); // temporary image - build it here so it is available when switching from QPixmap to QImage rendering
52
mCanvas->mapRenderer()->setOutputSize( size, mPixmap.logicalDpiX() );
53
}
0 commit comments