Fix cleanup of map composition. Fixes ticket #6440

This commit is contained in:
Marco Hugentobler 2012-10-09 09:46:03 +02:00
parent a49a431014
commit 65141e29ee
3 changed files with 2 additions and 6 deletions

View File

@ -505,11 +505,6 @@ QgsComposerView *QgsComposer::view( void )
return mView;
}
/*QgsComposition *QgsComposer::composition(void)
{
return mComposition;
}*/
void QgsComposer::zoomFull( void )
{
if ( mView )

View File

@ -78,7 +78,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
QgsComposerView *view( void );
//! Return current composition
//QgsComposition *composition(void);
QgsComposition* composition(void){ return mComposition; }
//! Restore the window and toolbar state
void restoreWindowState();

View File

@ -4422,6 +4422,7 @@ void QgisApp::deletePrintComposers()
for ( ; it != mPrintComposers.end(); ++it )
{
emit composerWillBeRemoved(( *it )->view() );
delete ( (*it)->composition() );
delete( *it );
}
mPrintComposers.clear();