Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[qgsquick] Avoid all-black map canvas when first loading a QML scene …
…with nothing to render
  • Loading branch information
nirvn authored and nyalldawson committed Apr 24, 2023
1 parent d8cca59 commit 68fac0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/quickgui/qgsquickmapcanvasmap.cpp
Expand Up @@ -360,6 +360,11 @@ QSGNode *QgsQuickMapCanvasMap::updatePaintNode( QSGNode *oldNode, QQuickItem::Up
mDirty = false;
}

if ( mImage.isNull() )
{
return nullptr;
}

QSGSimpleTextureNode *node = static_cast<QSGSimpleTextureNode *>( oldNode );
if ( !node )
{
Expand Down

0 comments on commit 68fac0e

Please sign in to comment.