Skip to content
Permalink
Browse files

Fix remaining rubberBand

  • Loading branch information
lbartoletti committed Aug 22, 2017
1 parent 508aef0 commit 46e66c313db47187b8393dd7d12cd79206e30125
@@ -78,14 +78,13 @@ void QgsMapToolAddEllipse::deactivate()

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

clean();

QgsMapToolCapture::deactivate();
}

void QgsMapToolAddEllipse::activate()
{

clean();
QgsMapToolCapture::activate();
}
@@ -102,4 +101,5 @@ void QgsMapToolAddEllipse::clean()
{
mParentTool->deleteTempRubberBand();
}
mEllipse = QgsEllipse();
}
@@ -109,9 +109,7 @@ void QgsMapToolAddRectangle::deactivate()

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

QgsMapToolCapture::deactivate();
}
@@ -134,4 +132,5 @@ void QgsMapToolAddRectangle::clean()
{
mParentTool->deleteTempRubberBand();
}
mRectangle = QgsRectangle();
}
@@ -126,4 +126,5 @@ void QgsMapToolAddRegularPolygon::clean()
{
deleteNumberSidesSpinBox();
}
mRegularPolygon = QgsRegularPolygon();
}

0 comments on commit 46e66c3

Please sign in to comment.
You can’t perform that action at this time.