Skip to content
Permalink
Browse files
fix locator crash with all layers filter
  • Loading branch information
3nids authored and github-actions committed Sep 7, 2021
1 parent ee36b0e commit 5003e486706ff6712b99da3992354f6c112ca3df
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 5003e48

Please sign in to comment.