Skip to content
Permalink
Browse files
Also set correct expression context on feature request
(cherry picked from commit ba5692c)
  • Loading branch information
nyalldawson committed May 28, 2021
1 parent 56b7cb9 commit 01f631a324c7336d86c0859f771a60c0f5409435
Showing with 3 additions and 0 deletions.
  1. +1 −0 src/app/qgsmaptoolselectutils.cpp
  2. +1 −0 src/app/vertextool/qgsvertextool.cpp
  3. +1 −0 src/gui/qgsmaptip.cpp
@@ -287,6 +287,7 @@ QgsFeatureIds QgsMapToolSelectUtils::getMatchingFeatures( QgsMapCanvas *canvas,
}
}

request.setExpressionContext( context.expressionContext() );
QgsFeatureIterator fit = vlayer->getFeatures( request );

QgsFeature f;
@@ -584,6 +584,7 @@ void QgsVertexTool::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
request.setSubsetOfAttributes( r->usedAttributes( context ), vlayer->fields() );
else
request.setNoAttributes();
request.setExpressionContext( context.expressionContext() );

QgsFeature f;
QgsFeatureIterator fi = vlayer->getFeatures( request );
@@ -256,6 +256,7 @@ QString QgsMapTip::fetchFeature( QgsMapLayer *layer, QgsPointXY &mapPosition, Qg
request.combineFilterExpression( filterExpression );
}
}
request.setExpressionContext( renderCtx.expressionContext() );

QgsFeatureIterator it = vlayer->getFeatures( request );
QElapsedTimer timer;

0 comments on commit 01f631a

Please sign in to comment.