Skip to content
Permalink
Browse files
fix locator crash with all layers filter (#44972)
  • Loading branch information
3nids committed Sep 7, 2021
1 parent a25c2d8 commit e05e9c0a20eb68d0583a397907af274474a4bd07
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/locator/qgsinbuiltlocatorfilters.cpp
@@ -685,7 +685,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;
result.icon = preparedLayer->layerIcon;
result.score = static_cast< double >( string.length() ) / result.displayString.size();

0 comments on commit e05e9c0

Please sign in to comment.