Skip to content
Permalink
Browse files

[bugfix] Layer rendering order broken in QGIS 3x

Fixes #18620

Cherry-picked from master 958cb3d
  • Loading branch information
elpaso committed Apr 5, 2018
1 parent 2cae2f4 commit ca732051852f47d22bf114f77cab458c951fa1ce
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/core/qgsproject.cpp
@@ -1016,11 +1016,12 @@ bool QgsProject::readProjectFile( const QString &filename )
{
mRootGroup->readLayerOrderFromXml( layerTreeElem );
}
else

// Load pre 3.0 configuration
QDomElement layerTreeCanvasElem = doc->documentElement().firstChildElement( QStringLiteral( "layer-tree-canvas" ) );
if ( !layerTreeCanvasElem.isNull( ) )
{
// Load pre 3.0 configuration
QDomElement elem = doc->documentElement().firstChildElement( QStringLiteral( "layer-tree-canvas" ) );
mRootGroup->readLayerOrderFromXml( elem );
mRootGroup->readLayerOrderFromXml( layerTreeCanvasElem );
}

// make sure the are just valid layers

0 comments on commit ca73205

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