Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when reopening composers
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 885269e commit 4a993de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -673,6 +673,7 @@ QgsComposer::QgsComposer( QgsComposition *composition )

QgsComposer::~QgsComposer()
{
mComposition->setAllDeselected();
delete mPrinter;
}

Expand Down
3 changes: 2 additions & 1 deletion src/core/composer/qgscomposermousehandles.h
Expand Up @@ -19,6 +19,7 @@

#include <QGraphicsRectItem>
#include <QObject>
#include <QPointer>

#include "qgis_core.h"

Expand Down Expand Up @@ -110,7 +111,7 @@ class CORE_EXPORT QgsComposerMouseHandles: public QObject, public QGraphicsRectI
private:

QgsComposition *mComposition; //reference to composition
QGraphicsView *mGraphicsView; //reference to QGraphicsView
QPointer< QGraphicsView > mGraphicsView; //reference to QGraphicsView

QgsComposerMouseHandles::MouseAction mCurrentMouseMoveAction;
//! Start point of the last mouse move action (in scene coordinates)
Expand Down

0 comments on commit 4a993de

Please sign in to comment.