Skip to content
Permalink
Browse files
Also set correct expression context on feature request
(cherry picked from commit ba5692c)
  • Loading branch information
nyalldawson committed Jun 21, 2021
1 parent a232222 commit 7f57c8bf343975d8c71b5b556ec049fd030c2df5
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 7f57c8b

Please sign in to comment.