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 27, 2016
1 parent 9feb6c4 commit 65a379be9b08b6d2e70f8ba54b4b8b34e316c4ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerrenderer.cpp
@@ -324,7 +324,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 65a379b

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