Skip to content

Commit

Permalink
Add position scope to vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 10, 2022
1 parent 572fb1e commit 7fce30b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmaptip.cpp
Expand Up @@ -251,6 +251,7 @@ QString QgsMapTip::fetchFeature( QgsMapLayer *layer, QgsPointXY &mapPosition, Qg

QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( vlayer ) );
context.appendScope( QgsExpressionContextUtils::mapSettingsScope( mapCanvas->mapSettings() ) );
context.appendScope( QgsExpressionContextUtils::mapLayerPositionScope( r.center() ) );

const QString canvasFilter = QgsMapCanvasUtils::filterForLayer( mapCanvas, vlayer );
if ( canvasFilter == QLatin1String( "FALSE" ) )
Expand Down

0 comments on commit 7fce30b

Please sign in to comment.