Skip to content
Permalink
Browse files
Fix a crash when using map composer within python
git-svn-id: http://svn.osgeo.org/qgis/trunk@13602 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 30, 2010
1 parent 03216df commit 2c4fdbd73247d550c6ba03957c494c6c8bcb87b7
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/composer/qgscomposition.cpp
@@ -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 )

0 comments on commit 2c4fdbd

Please sign in to comment.