Skip to content
Permalink
Browse files

WMS GetProjectSettings: better drawing order detection

  • Loading branch information
mhugent committed Nov 1, 2012
1 parent af575b7 commit dbea3596a1abd6c164dc5ff0821c14135cbac744
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/mapserver/qgsprojectparser.cpp
@@ -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();

0 comments on commit dbea359

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