Skip to content
Permalink
Browse files

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 18, 2018
1 parent 5ee4d8f commit b166e5718717c3f3511a2ff771ffa3d24d9cab6c
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/core/qgsvectorlayerrenderer.cpp
@@ -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 );

0 comments on commit b166e57

Please sign in to comment.
You can’t perform that action at this time.