Skip to content
Permalink
Browse files
Merge pull request #42682 from MorriganR/PointLocatorFix
[PointLocator] Prevent calling DataProvider if snapping for invisible features is enabled
  • Loading branch information
MorriganR committed Apr 30, 2021
1 parent 4e9932c commit c09360c877b72473ecb2c1a52c688582af39588a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgspointlocator.cpp
@@ -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;

0 comments on commit c09360c

Please sign in to comment.