Skip to content

Commit

Permalink
WMS GetProjectSettings: better drawing order detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 1, 2012
1 parent af575b7 commit dbea359
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Expand Up @@ -2252,7 +2252,14 @@ void QgsProjectParser::addDrawingOrder( QDomElement& parentElem, QDomDocument& d
{
QString layerName = layerNodeList.at( i ).toElement().attribute( "name" );
int order = layerNodeList.at( i ).toElement().attribute( "drawingOrder" ).toInt();
orderedLayerNames.insert( order, layerName );
if ( order == -1 )
{
layerList.prepend( layerName );
}
else
{
orderedLayerNames.insert( order, layerName );
}
}

QMap<int, QString>::const_iterator orderIt = orderedLayerNames.constBegin();
Expand Down

0 comments on commit dbea359

Please sign in to comment.