Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5798a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerrenderer.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 5798a82

Please sign in to comment.