Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use transform context from rw context
  • Loading branch information
elpaso authored and nyalldawson committed Apr 17, 2019
1 parent ac04339 commit 86b7345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -1414,7 +1414,7 @@ bool QgsVectorLayer::readXml( const QDomNode &layer_node, QgsReadWriteContext &c
mProviderKey = QStringLiteral( "ogr" );
}

QgsDataProvider::ProviderOptions options; // { };
QgsDataProvider::ProviderOptions options { context.transformContext() };
if ( !setDataProvider( mProviderKey, options ) )
{
QgsDebugMsg( QStringLiteral( "Could not set data provider for layer %1" ).arg( publicSource() ) );
Expand Down

0 comments on commit 86b7345

Please sign in to comment.