Skip to content
Permalink
Browse files

Speed up point layer rendering - don't calculate unused label obstacles

Cuts render time by ~60%. Fix #15752.

(cherry-picked from 5798a82)
  • Loading branch information
nyalldawson committed Oct 28, 2016
1 parent fa7491f commit 68cbf0701206a156b71500b75e10aff8cee93f86
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerrenderer.cpp
@@ -333,7 +333,7 @@ void QgsVectorLayerRenderer::drawRendererV2( QgsFeatureIterator& fit )
}
}
// new labeling engine
if ( mContext.labelingEngineV2() )
if ( mContext.labelingEngineV2() && ( mLabelProvider || mDiagramProvider ) )
{
QScopedPointer<QgsGeometry> obstacleGeometry;
QgsSymbolV2List symbols = mRendererV2->originalSymbolsForFeature( fet, mContext );

0 comments on commit 68cbf07

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