Skip to content

Commit

Permalink
Remove an extraneous setting of layer scope for vectors
Browse files Browse the repository at this point in the history
We already have set the layer scope for ALL layer types in
the map renderer job preparation, so there's no need to
add another layer scope in the vector layer renderer

Refs #60112
  • Loading branch information
nyalldawson committed Jan 31, 2025
1 parent 9f7f9d7 commit 5158569
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/vector/qgsvectorlayerrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ QgsVectorLayerRenderer::QgsVectorLayerRenderer( QgsVectorLayer *layer, QgsRender
// set editing vertex markers style (main renderer only)
mRenderer->setVertexMarkerAppearance( mVertexMarkerStyle, mVertexMarkerSize );
}
if ( !mNoSetLayerExpressionContext )
renderContext()->expressionContext() << QgsExpressionContextUtils::layerScope( layer );

for ( const std::unique_ptr< QgsFeatureRenderer > &renderer : mRenderers )
{
Expand Down

0 comments on commit 5158569

Please sign in to comment.