mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix a crash when using map composer within python
git-svn-id: http://svn.osgeo.org/qgis/trunk@13602 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
03216df7f8
commit
2c4fdbd732
@ -52,6 +52,11 @@ QgsComposition::QgsComposition(): QGraphicsScene( 0 ), mMapRenderer( 0 ), mPlotS
|
||||
QgsComposition::~QgsComposition()
|
||||
{
|
||||
delete mPaperItem;
|
||||
|
||||
// make sure that all composer items are removed before
|
||||
// this class is deconstructed - to avoid segfaults
|
||||
// when composer items access in destructor composition that isn't valid anymore
|
||||
clear();
|
||||
}
|
||||
|
||||
void QgsComposition::setPaperSize( double width, double height )
|
||||
|
Loading…
x
Reference in New Issue
Block a user