Skip to content

Commit

Permalink
fix locator crash with all layers filter (#44973)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 7, 2021
1 parent 618014f commit e850195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/locator/qgsalllayersfeatureslocatorfilter.cpp
Expand Up @@ -121,7 +121,7 @@ void QgsAllLayersFeaturesLocatorFilter::fetchResults( const QString &string, con

result.displayString = preparedLayer->expression.evaluate( &( preparedLayer->context ) ).toString();

result.userData = QVariantList() << f.id() << preparedLayer->layerId;
result.userData = QVariantList() << f.id() << preparedLayer->layerId << preparedLayer->layerIsSpatial;
foundFeatureIds << f.id();
result.icon = preparedLayer->layerIcon;
result.score = static_cast< double >( string.length() ) / result.displayString.size();
Expand Down

0 comments on commit e850195

Please sign in to comment.