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 846eef2 commit ea529c5
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 ea529c5

Please sign in to comment.