Skip to content
Permalink
Browse files

When there's no features to draw for a level based renderer, shortcut…

… out of rendering
  • Loading branch information
nyalldawson committed Jul 18, 2018
1 parent 60d2cd3 commit 482d8feedbd1324446b04e77e29309fdad2ee01b
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 482d8fe

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