Skip to content

Commit

Permalink
Small efficiency improvement for rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Sep 1, 2011
1 parent 7deb0c9 commit 23c5f34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>() );
Expand All @@ -842,7 +847,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 23c5f34

Please sign in to comment.