Skip to content

Commit

Permalink
Check Geometries/Check for duplicates: avoid assertion in debug build…
Browse files Browse the repository at this point in the history
…s due to thread-unsafe usage of layer() method (fixes #44246)
  • Loading branch information
rouault authored and github-actions[bot] committed Jul 21, 2021
1 parent 8ebeab1 commit 8b8a0e1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -26,7 +26,7 @@ QString QgsGeometryDuplicateCheckError::duplicatesString( const QMap<QString, Qg
QStringList str;
for ( auto it = duplicates.constBegin(); it != duplicates.constEnd(); ++it )
{
str.append( featurePools[it.key()]->layer()->name() + ":" );
str.append( featurePools[it.key()]->layerName() + ":" );
QStringList ids;
ids.reserve( it.value().length() );
for ( QgsFeatureId id : it.value() )
Expand Down

0 comments on commit 8b8a0e1

Please sign in to comment.