Skip to content

Commit

Permalink
Fix remaining rubberBand
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Aug 22, 2017
1 parent 508aef0 commit 46e66c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdellipse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,13 @@ void QgsMapToolAddEllipse::deactivate()

mParentTool->clearCurve();
mParentTool->addCurve( mEllipse.toLineString() );

clean();

QgsMapToolCapture::deactivate();
}

void QgsMapToolAddEllipse::activate()
{

clean();
QgsMapToolCapture::activate();
}
Expand All @@ -102,4 +101,5 @@ void QgsMapToolAddEllipse::clean()
{
mParentTool->deleteTempRubberBand();
}
mEllipse = QgsEllipse();
}
5 changes: 2 additions & 3 deletions src/app/qgsmaptooladdrectangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ void QgsMapToolAddRectangle::deactivate()

mParentTool->clearCurve( );
mParentTool->addCurve( rectangleToLinestring() );
delete mTempRubberBand;
mTempRubberBand = nullptr;
mPoints.clear();
clean();

QgsMapToolCapture::deactivate();
}
Expand All @@ -134,4 +132,5 @@ void QgsMapToolAddRectangle::clean()
{
mParentTool->deleteTempRubberBand();
}
mRectangle = QgsRectangle();
}
1 change: 1 addition & 0 deletions src/app/qgsmaptooladdregularpolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@ void QgsMapToolAddRegularPolygon::clean()
{
deleteNumberSidesSpinBox();
}
mRegularPolygon = QgsRegularPolygon();
}

0 comments on commit 46e66c3

Please sign in to comment.