Skip to content

Commit

Permalink
[BUGFIX][QGIS Server] Revert layer order in WMS GetContext request
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Nov 8, 2016
1 parent 3683c33 commit 15bcded
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/server/qgswmsprojectparser.cpp
Expand Up @@ -1768,7 +1768,14 @@ void QgsWMSProjectParser::addOWSLayers( QDomDocument &doc,
layerElem.appendChild( metaUrlElem );
}

parentElem.appendChild( layerElem );
if ( parentElem.hasChildNodes() )
{
parentElem.insertBefore( layerElem, parentElem.firstChild() );
}
else
{
parentElem.appendChild( layerElem );
}
}
else
{
Expand Down

0 comments on commit 15bcded

Please sign in to comment.