Skip to content

Commit

Permalink
Followup a8f85fb fix crash on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 28, 2015
1 parent 32cf296 commit 4ad6168
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/app/qgsadvanceddigitizingcanvasitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ QgsAdvancedDigitizingCanvasItem::QgsAdvancedDigitizingCanvasItem( QgsMapCanvas*
{
}

QgsAdvancedDigitizingCanvasItem::~QgsAdvancedDigitizingCanvasItem()
{
}

void QgsAdvancedDigitizingCanvasItem::paint( QPainter* painter )
{
if ( !mAdvancedDigitizingDockWidget->cadEnabled() )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgsadvanceddigitizingcanvasitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class APP_EXPORT QgsAdvancedDigitizingCanvasItem : public QgsMapCanvasItem
{
public:
explicit QgsAdvancedDigitizingCanvasItem( QgsMapCanvas* canvas, QgsAdvancedDigitizingDockWidget* cadDockWidget );
~QgsAdvancedDigitizingCanvasItem();

void paint( QPainter *painter ) override;

Expand Down
1 change: 0 additions & 1 deletion src/app/qgsadvanceddigitizingdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ QgsAdvancedDigitizingDockWidget::QgsAdvancedDigitizingDockWidget( QgsMapCanvas*
QgsAdvancedDigitizingDockWidget::~QgsAdvancedDigitizingDockWidget()
{
delete mErrorMessage;
delete mCadPaintItem;
delete mAngleConstraint;
delete mDistanceConstraint;
delete mXConstraint;
Expand Down

0 comments on commit 4ad6168

Please sign in to comment.