Skip to content
Permalink
Browse files

Small efficiency improvement for rendering

  • Loading branch information
mhugent committed Sep 1, 2011
1 parent 7deb0c9 commit 23c5f34e7d42d29ad13861007b789c5a863b7413
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/qgsvectorlayer.cpp
@@ -830,6 +830,11 @@ void QgsVectorLayer::drawRendererV2Levels( QgsRenderContext& rendererContext, bo
}
#endif //Q_WS_MAC
QgsSymbolV2* sym = mRendererV2->symbolForFeature( fet );
if ( !sym )
{
continue;
}

if ( !features.contains( sym ) )
{
features.insert( sym, QList<QgsFeature>() );
@@ -842,7 +847,7 @@ void QgsVectorLayer::drawRendererV2Levels( QgsRenderContext& rendererContext, bo
mCachedGeometries[fet.id()] = *fet.geometry();
}

if ( mRendererV2->symbolForFeature( fet ) != NULL )
if ( sym )
{
if ( labeling )
{

0 comments on commit 23c5f34

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