Skip to content
Permalink
Browse files
Speed up point layer rendering - don't calculate unused label obstacles
Cuts render time by ~60%. Fix #15752.
  • Loading branch information
nyalldawson committed Oct 26, 2016
1 parent 6f82740 commit 5798a82c8011ea7f44a1ed1d55ef0719786e8056
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerrenderer.cpp
@@ -326,7 +326,7 @@ void QgsVectorLayerRenderer::drawRenderer( QgsFeatureIterator& fit )
}
}
// new labeling engine
if ( mContext.labelingEngineV2() )
if ( mContext.labelingEngineV2() && ( mLabelProvider || mDiagramProvider ) )
{
QScopedPointer<QgsGeometry> obstacleGeometry;
QgsSymbolList symbols = mRenderer->originalSymbolsForFeature( fet, mContext );

0 comments on commit 5798a82

Please sign in to comment.