Skip to content

Commit

Permalink
Update src/core/processing/qgsprocessingutils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored Feb 4, 2025
1 parent 2d9070d commit 823f9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/processing/qgsprocessingutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ QString QgsProcessingUtils::layerToStringIdentifier( const QgsMapLayer *layer, c
return QStringLiteral( "%1://%2" ).arg( provider, source );
}

if ( layer->dataProvider()->name() == QLatin1String( "annotation" ) && layerName.compare( QLatin1String( "main" ), Qt::CaseInsensitive ) == 0 )
if ( layer->type() == Qgis::LayerType::Annotation && layerName.compare( QLatin1String( "main" ), Qt::CaseInsensitive ) == 0 )
{
return layerName;
}
Expand Down

0 comments on commit 823f9c5

Please sign in to comment.