mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-10 00:08:20 -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;
|
return mView;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*QgsComposition *QgsComposer::composition(void)
|
|
||||||
{
|
|
||||||
return mComposition;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
void QgsComposer::zoomFull( void )
|
void QgsComposer::zoomFull( void )
|
||||||
{
|
{
|
||||||
if ( mView )
|
if ( mView )
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
|
|||||||
QgsComposerView *view( void );
|
QgsComposerView *view( void );
|
||||||
|
|
||||||
//! Return current composition
|
//! Return current composition
|
||||||
//QgsComposition *composition(void);
|
QgsComposition* composition(void){ return mComposition; }
|
||||||
|
|
||||||
//! Restore the window and toolbar state
|
//! Restore the window and toolbar state
|
||||||
void restoreWindowState();
|
void restoreWindowState();
|
||||||
|
|||||||
@ -4422,6 +4422,7 @@ void QgisApp::deletePrintComposers()
|
|||||||
for ( ; it != mPrintComposers.end(); ++it )
|
for ( ; it != mPrintComposers.end(); ++it )
|
||||||
{
|
{
|
||||||
emit composerWillBeRemoved(( *it )->view() );
|
emit composerWillBeRemoved(( *it )->view() );
|
||||||
|
delete ( (*it)->composition() );
|
||||||
delete( *it );
|
delete( *it );
|
||||||
}
|
}
|
||||||
mPrintComposers.clear();
|
mPrintComposers.clear();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user