Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small efficiency improvement for rendering
  • Loading branch information
mhugent authored and timlinux committed Sep 7, 2011
1 parent dc9d7a2 commit 7a4602b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -832,6 +832,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>() );
Expand All @@ -844,7 +849,7 @@ void QgsVectorLayer::drawRendererV2Levels( QgsRenderContext& rendererContext, bo
mCachedGeometries[fet.id()] = *fet.geometry();
}

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

0 comments on commit 7a4602b

Please sign in to comment.