Skip to content


Fix a crash when using map composer within python
Browse files Browse the repository at this point in the history
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed May 30, 2010
1 parent 03216df commit 2c4fdbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/composer/qgscomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ QgsComposition::QgsComposition(): QGraphicsScene( 0 ), mMapRenderer( 0 ), mPlotS
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

void QgsComposition::setPaperSize( double width, double height )
Expand Down

0 comments on commit 2c4fdbd

Please sign in to comment.