Skip to content
Permalink
Browse files

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

)
  • Loading branch information
jef-n committed Jun 4, 2015
1 parent 7f29de8 commit c22ad17cee5b12f9f10764107d3b006ced88bec9
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgisapp.cpp
@@ -7268,7 +7268,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 c22ad17

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