Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When there's no features to draw for a level based renderer, shortcut…
… out of rendering

(cherry-picked from 482d8fe)
  • Loading branch information
nyalldawson committed Jul 19, 2018
1 parent 5ee4d8f commit b166e57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/qgsvectorlayerrenderer.cpp
Expand Up @@ -398,6 +398,13 @@ void QgsVectorLayerRenderer::drawRendererLevels( QgsFeatureIterator &fit )

delete mContext.expressionContext().popScope();

if ( features.empty() )
{
// nothing to draw
stopRenderer( selRenderer );
return;
}

// find out the order
QgsSymbolLevelOrder levels;
QgsSymbolList symbols = mRenderer->symbols( mContext );
Expand Down

0 comments on commit b166e57

Please sign in to comment.