Skip to content
Permalink
Browse files
Fix crash when reopening composers
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 885269e commit 4a993de5794447a9c10b1011acd1f9a1919a68e7
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/app/composer/qgscomposer.cpp
  2. +2 −1 src/core/composer/qgscomposermousehandles.h
@@ -673,6 +673,7 @@ QgsComposer::QgsComposer( QgsComposition *composition )

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

@@ -19,6 +19,7 @@

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

#include "qgis_core.h"

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

0 comments on commit 4a993de

Please sign in to comment.