Skip to content
Permalink
Browse files

server: fix layer order in 'LayerDrawingOrder' (followup de5a3f5)

  • Loading branch information
jef-n committed Apr 10, 2015
1 parent fa99a96 commit 04324fd6659a2a933cf50f9073906e69ce4671a6
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/server/qgswmsprojectparser.cpp
@@ -766,8 +766,12 @@ void QgsWMSProjectParser::addDrawingOrder( QDomElement& parentElem, QDomDocument

if ( !layerList.isEmpty() )
{
QStringList reversedList;
for ( int i = layerList.size() - 1; i >= 0; --i )
reversedList << layerList[ i ];

QDomElement layerDrawingOrderElem = doc.createElement( "LayerDrawingOrder" );
QDomText drawingOrderText = doc.createTextNode( layerList.join( "," ) );
QDomText drawingOrderText = doc.createTextNode( reversedList.join( "," ) );
layerDrawingOrderElem.appendChild( drawingOrderText );
parentElem.appendChild( layerDrawingOrderElem );
}

0 comments on commit 04324fd

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