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:
wonder 2010-05-30 14:46:42 +00:00
parent 03216df7f8
commit 2c4fdbd732

View File

@ -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 )