We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 30d9ad8 commit f20041dCopy full SHA for f20041d
src/app/qgsmaptoolcircle2points.cpp
@@ -35,13 +35,10 @@ void QgsMapToolCircle2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
35
{
36
mPoints.append( mapPoint );
37
38
- if ( !mPoints.isEmpty() )
+ if ( !mPoints.isEmpty() && !mTempRubberBand )
39
40
- if ( !mTempRubberBand )
41
- {
42
- mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
43
- mTempRubberBand->show();
44
- }
+ mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
+ mTempRubberBand->show();
45
}
46
47
else if ( e->button() == Qt::RightButton )
0 commit comments