Skip to content
Permalink
Browse files

also copy vector provider encoding when duplicating layers (fixes #11687

)

(cherry picked from commit c22ad17)
  • Loading branch information
jef-n committed Jun 4, 2015
1 parent b8a3a6f commit 1d2539f7e4c3309f2adb43841085660329c95678
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgisapp.cpp
@@ -7146,7 +7146,12 @@ void QgisApp::duplicateLayers( QList<QgsMapLayer *> lyrList )
}
else if ( vlayer )
{
dupLayer = new QgsVectorLayer( vlayer->source(), layerDupName, vlayer->providerType() );
QgsVectorLayer *dupVLayer = new QgsVectorLayer( vlayer->source(), layerDupName, vlayer->providerType() );
if ( vlayer->dataProvider() )
{
dupVLayer->setProviderEncoding( vlayer->dataProvider()->encoding() );
}
dupLayer = dupVLayer;
}
}

0 comments on commit 1d2539f

Please sign in to comment.
You can’t perform that action at this time.