Skip to content
Permalink
Browse files

Merge pull request #6751 from elpaso/bugfix-18620-layer-custom-order

[bugfix] Layer rendering order broken in QGIS 3x
  • Loading branch information
elpaso committed Apr 5, 2018
2 parents 63130d4 + 958cb3d commit 16e18ba6234b7e49adfef3fc69e80bee15838a29
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/core/qgsproject.cpp
@@ -1077,11 +1077,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 16e18ba

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