Skip to content
Permalink
Browse files

Port fix for #35219 to 3.10

  • Loading branch information
mhugent committed Mar 22, 2020
1 parent 892d06c commit c65d243ab02a354d3dbcf9f77e71c45a11fd5b37
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgslayerdefinition.cpp
@@ -210,7 +210,8 @@ bool QgsLayerDefinition::exportLayerDefinition( QString path, const QList<QgsLay
}

QgsReadWriteContext context;
context.setPathResolver( QgsPathResolver( path ) );
bool writeAbsolutePath = QgsProject::instance()->readBoolEntry( QStringLiteral( "Paths" ), QStringLiteral( "/Absolute" ), false );
context.setPathResolver( QgsPathResolver( writeAbsolutePath ? QString() : path ) );

QDomDocument doc( QStringLiteral( "qgis-layer-definition" ) );
if ( !exportLayerDefinition( doc, selectedTreeNodes, errorMessage, context ) )

0 comments on commit c65d243

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