mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
Fix cleanup of map composition. Fixes ticket #6440
This commit is contained in:
parent
a49a431014
commit
65141e29ee
@ -505,11 +505,6 @@ QgsComposerView *QgsComposer::view( void )
|
||||
return mView;
|
||||
}
|
||||
|
||||
/*QgsComposition *QgsComposer::composition(void)
|
||||
{
|
||||
return mComposition;
|
||||
}*/
|
||||
|
||||
void QgsComposer::zoomFull( void )
|
||||
{
|
||||
if ( mView )
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -4422,6 +4422,7 @@ void QgisApp::deletePrintComposers()
|
||||
for ( ; it != mPrintComposers.end(); ++it )
|
||||
{
|
||||
emit composerWillBeRemoved(( *it )->view() );
|
||||
delete ( (*it)->composition() );
|
||||
delete( *it );
|
||||
}
|
||||
mPrintComposers.clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user