Skip to content

Commit

Permalink
Fix cleanup of map composition. Fixes ticket #6440
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hugentobler committed Oct 9, 2012
1 parent a49a431 commit 65141e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -505,11 +505,6 @@ QgsComposerView *QgsComposer::view( void )
return mView;
}

/*QgsComposition *QgsComposer::composition(void)
{
return mComposition;
}*/

void QgsComposer::zoomFull( void )
{
if ( mView )
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposer.h
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -4422,6 +4422,7 @@ void QgisApp::deletePrintComposers()
for ( ; it != mPrintComposers.end(); ++it )
{
emit composerWillBeRemoved(( *it )->view() );
delete ( (*it)->composition() );
delete( *it );
}
mPrintComposers.clear();
Expand Down

0 comments on commit 65141e2

Please sign in to comment.