Skip to content

Commit

Permalink
[qgsquick] Do not refresh/redraw map canvas when its settings are inv…
Browse files Browse the repository at this point in the history
…alid
  • Loading branch information
nirvn committed Jun 27, 2021
1 parent 7894ec5 commit 790cd4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quickgui/qgsquickmapcanvasmap.cpp
Expand Up @@ -98,6 +98,8 @@ void QgsQuickMapCanvasMap::refreshMap()
stopRendering(); // if any...

QgsMapSettings mapSettings = mMapSettings->mapSettings();
if ( !mapSettings.hasValidSettings() )
return;

//build the expression context
QgsExpressionContext expressionContext;
Expand Down

0 comments on commit 790cd4b

Please sign in to comment.