mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-08 00:05:32 -04:00
Concat successive if
This commit is contained in:
parent
30d9ad8d3a
commit
f20041dc60
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user