Skip to content
Permalink
Browse files
[layertree] Fix #10373 (embedded group not loaded if with relative path)
  • Loading branch information
wonder-sk committed May 27, 2014
1 parent df09910 commit 48ee84b1bfacec593704b7b666dd113710f2bf88
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/qgsproject.cpp
@@ -966,7 +966,11 @@ void QgsProject::loadEmbeddedNodes( QgsLayerTreeGroup* group )
QgsLayerTreeGroup* childGroup = QgsLayerTree::toGroup( child );
if ( childGroup->customProperty( "embedded" ).toInt() )
{
QgsLayerTreeGroup* newGroup = createEmbeddedGroup( childGroup->name(), childGroup->customProperty( "embedded_project" ).toString() );
// make sure to convert the path from relative to absolute
QString projectPath = readPath( childGroup->customProperty( "embedded_project" ).toString() );
childGroup->setCustomProperty( "embedded_project", projectPath );

QgsLayerTreeGroup* newGroup = createEmbeddedGroup( childGroup->name(), projectPath );
if ( newGroup )
{
QList<QgsLayerTreeNode*> clonedChildren;

0 comments on commit 48ee84b

Please sign in to comment.