Skip to content

Commit

Permalink
Remove map items not referenced in the GetPrint request
Browse files Browse the repository at this point in the history
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 7f87088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mapserver/qgsconfigparser.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 7f87088

Please sign in to comment.