Turn relative path into absolute path for reading embedded projects. Fixes #34060

This commit is contained in:
Blottiere Paul 2020-02-05 16:29:48 +01:00
parent 504d43acc2
commit b52b2436f8

View File

@ -1621,7 +1621,7 @@ void QgsProject::loadEmbeddedNodes( QgsLayerTreeGroup *group, QgsProject::ReadFl
if ( child->customProperty( QStringLiteral( "embedded" ) ).toInt() )
{
QList<QDomNode> brokenNodes;
createEmbeddedLayer( QgsLayerTree::toLayer( child )->layerId(), child->customProperty( QStringLiteral( "embedded_project" ) ).toString(), brokenNodes, flags );
createEmbeddedLayer( QgsLayerTree::toLayer( child )->layerId(), readPath( child->customProperty( QStringLiteral( "embedded_project" ) ).toString() ), brokenNodes, flags );
}
}