Skip to content
Permalink
Browse files

Concat successive if

  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent 30d9ad8 commit f20041dc6056209e9f81e5295fa0149e310e66a3
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/app/qgsmaptoolcircle2points.cpp
@@ -35,13 +35,10 @@ void QgsMapToolCircle2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
{
mPoints.append( mapPoint );

if ( !mPoints.isEmpty() )
if ( !mPoints.isEmpty() && !mTempRubberBand )
{
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
mTempRubberBand->show();
}
mTempRubberBand = createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true );
mTempRubberBand->show();
}
}
else if ( e->button() == Qt::RightButton )

0 comments on commit f20041d

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