We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ed3c0a commit f34ee9cCopy full SHA for f34ee9c
src/mapserver/qgsconfigparser.cpp
@@ -304,6 +304,9 @@ QgsComposition* QgsConfigParser::createPrintComposition( const QString& composer
304
QMap< QString, QString >::const_iterator titleIt = parameterMap.find( "MAP" + QString::number( currentMap->id() ) );
305
if ( titleIt == parameterMap.constEnd() )
306
{
307
+ //remove map from composition if not referenced by the request
308
+ c->removeItem( *mapIt );
309
+ delete( *mapIt );
310
continue;
311
}
312
QString replaceString = titleIt.value();
0 commit comments