Skip to content
Permalink
Browse files

Small efficiency improvement for rendering

  • Loading branch information
mhugent authored and timlinux committed Sep 7, 2011
1 parent dc9d7a2 commit 7a4602b04ae0dc7561af1dc66b37239ddb98daae
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/core/qgsvectorlayer.cpp
@@ -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>() );
@@ -844,7 +849,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 7a4602b

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