Skip to content
Permalink
Browse files
fix locator crash with all layers filter (#44976)
Co-authored-by: Denis Rouzaud <denis.rouzaud@gmail.com>
  • Loading branch information
qgis-bot and 3nids committed Sep 7, 2021
1 parent ee36b0e commit 0a7bcf3a6c2f1684bb8a7c187d922083baeeb6d3
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 0a7bcf3

Please sign in to comment.