[QGIS Commit] r15031 - trunk/qgis/src/mapserver

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jan 13 08:01:37 EST 2011


Author: mhugent
Date: 2011-01-13 05:01:37 -0800 (Thu, 13 Jan 2011)
New Revision: 15031

Modified:
   trunk/qgis/src/mapserver/qgsconfigparser.cpp
Log:
Remove map items not referenced in the GetPrint request

Modified: trunk/qgis/src/mapserver/qgsconfigparser.cpp
===================================================================
--- trunk/qgis/src/mapserver/qgsconfigparser.cpp	2011-01-13 10:08:18 UTC (rev 15030)
+++ trunk/qgis/src/mapserver/qgsconfigparser.cpp	2011-01-13 13:01:37 UTC (rev 15031)
@@ -304,6 +304,9 @@
     QMap< QString, QString >::const_iterator titleIt = parameterMap.find( "MAP" + QString::number( currentMap->id() ) );
     if ( titleIt == parameterMap.constEnd() )
     {
+      //remove map from composition if not referenced by the request
+      c->removeItem( *mapIt );
+      delete( *mapIt );
       continue;
     }
     QString replaceString = titleIt.value();



More information about the QGIS-commit mailing list