Skip to content
Permalink
Browse files
Remove map items not referenced in the GetPrint request
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15031 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 13, 2011
1 parent 9ad9e2d commit 7f8708833d8999076a37062239ef646098ca07b7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mapserver/qgsconfigparser.cpp
@@ -304,6 +304,9 @@ QgsComposition* QgsConfigParser::createPrintComposition( const QString& composer
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();

0 comments on commit 7f87088

Please sign in to comment.