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 4234ad5 commit 63e3fd3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/server/qgswmsprojectparser.cpp
Original file line number Diff line number Diff line change
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 63e3fd3

Please sign in to comment.