Skip to content

Commit 65141e2

Browse files
author
Marco Hugentobler
committedOct 9, 2012
Fix cleanup of map composition. Fixes ticket #6440
1 parent a49a431 commit 65141e2

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed
 

‎src/app/composer/qgscomposer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,6 @@ QgsComposerView *QgsComposer::view( void )
505505
return mView;
506506
}
507507

508-
/*QgsComposition *QgsComposer::composition(void)
509-
{
510-
return mComposition;
511-
}*/
512-
513508
void QgsComposer::zoomFull( void )
514509
{
515510
if ( mView )

‎src/app/composer/qgscomposer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
7878
QgsComposerView *view( void );
7979

8080
//! Return current composition
81-
//QgsComposition *composition(void);
81+
QgsComposition* composition(void){ return mComposition; }
8282

8383
//! Restore the window and toolbar state
8484
void restoreWindowState();

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4422,6 +4422,7 @@ void QgisApp::deletePrintComposers()
44224422
for ( ; it != mPrintComposers.end(); ++it )
44234423
{
44244424
emit composerWillBeRemoved(( *it )->view() );
4425+
delete ( (*it)->composition() );
44254426
delete( *it );
44264427
}
44274428
mPrintComposers.clear();

0 commit comments

Comments
 (0)
Please sign in to comment.