Skip to content

Commit

Permalink
Avoid corrupted project thumbnail images in some circumstances
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 4, 2020
1 parent d74715c commit f404e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -14983,6 +14983,7 @@ void QgisApp::createPreviewImage( const QString &path, const QIcon &icon )
, previewSize );

QPixmap previewImage( previewSize );
previewImage.fill();
QPainter previewPainter( &previewImage );
mMapCanvas->render( &previewPainter, QRect( QPoint(), previewSize ), previewRect );

Expand Down

0 comments on commit f404e6e

Please sign in to comment.