We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 481b192 commit c278869Copy full SHA for c278869
src/app/qgisapp.cpp
@@ -5654,7 +5654,7 @@ bool QgisApp::loadComposersFromProject( const QDomDocument& doc )
5654
void QgisApp::deletePrintComposers()
5655
{
5656
QSet<QgsComposer*>::iterator it = mPrintComposers.begin();
5657
- for ( ; it != mPrintComposers.end(); ++it )
+ while ( it != mPrintComposers.end() )
5658
5659
emit composerWillBeRemoved(( *it )->view() );
5660
@@ -5670,8 +5670,8 @@ void QgisApp::deletePrintComposers()
5670
5671
delete composition;
5672
}
5673
+ it = mPrintComposers.erase( it );
5674
- mPrintComposers.clear();
5675
mLastComposerId = 0;
5676
markDirty();
5677
0 commit comments