Skip to content
Permalink
Browse files
fix locator crash with all layers filter (#44973)
  • Loading branch information
3nids committed Sep 7, 2021
1 parent 618014f commit e850195a0e3bd46d60ed22ceca96d681e33e212b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/locator/qgsalllayersfeatureslocatorfilter.cpp
@@ -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();

0 comments on commit e850195

Please sign in to comment.