From 4c3e0e1ab9ceff1243f1a70e7c6ae4d76a3bd7ec Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 12 Nov 2024 20:08:27 +1000 Subject: [PATCH] Update src/analysis/processing/qgsmetadataalgorithms.cpp --- src/analysis/processing/qgsmetadataalgorithms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/processing/qgsmetadataalgorithms.cpp b/src/analysis/processing/qgsmetadataalgorithms.cpp index 5a191e073a2a..12d6205ee7dc 100644 --- a/src/analysis/processing/qgsmetadataalgorithms.cpp +++ b/src/analysis/processing/qgsmetadataalgorithms.cpp @@ -76,7 +76,7 @@ bool QgsCopyLayerMetadataAlgorithm::prepareAlgorithm( const QVariantMap ¶met mLayerId = targetLayer->id(); - targetLayer->setMetadata( *inputLayer->metadata() ); + targetLayer->setMetadata( inputLayer->metadata() ); if ( saveAsDefault ) { bool ok;