Skip to content

Commit

Permalink
Merge pull request #42682 from MorriganR/PointLocatorFix
Browse files Browse the repository at this point in the history
[PointLocator] Prevent calling DataProvider if snapping for invisible features is enabled
  • Loading branch information
MorriganR committed Apr 30, 2021
1 parent 4e9932c commit c09360c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgspointlocator.cpp
Expand Up @@ -1166,7 +1166,7 @@ void QgsPointLocator::onFeatureAdded( QgsFeatureId fid )
}

QgsFeature f;
if ( mLayer->getFeatures( QgsFeatureRequest( fid ) ).nextFeature( f ) )
if ( mLayer->getFeatures( mContext ? QgsFeatureRequest( fid ) : QgsFeatureRequest( fid ).setNoAttributes() ).nextFeature( f ) )
{
if ( !f.hasGeometry() )
return;
Expand Down

0 comments on commit c09360c

Please sign in to comment.