Skip to content
Permalink
Browse files
Spelling
  • Loading branch information
nyalldawson committed May 4, 2021
1 parent bdf8b79 commit 0c3b3c1e55a3f943fd85ded4dffbc049dbe41043
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/vector/qgsvectorlayer.cpp
@@ -1783,7 +1783,7 @@ bool QgsVectorLayer::setDataProvider( QString const &provider, const QgsDataProv
profile->switchTask( tr( "Read layer metadata" ) );
if ( mDataProvider->capabilities() & QgsVectorDataProvider::ReadLayerMetadata )
{
// we combine the provider metadata with the layer's existing metadata, so as not to reset any user customisations to the metadata
// we combine the provider metadata with the layer's existing metadata, so as not to reset any user customizations to the metadata
// back to the default if a layer's data source is changed
QgsLayerMetadata newMetadata = mDataProvider->layerMetadata();
// this overwrites the provider metadata with any properties which are non-empty from the existing layer metadata

0 comments on commit 0c3b3c1

Please sign in to comment.