Skip to content
Permalink
Browse files

initialize temporary rubberband for circular string tools

(temporary rubberband still not used)
  • Loading branch information
SebDieBln committed Dec 21, 2015
1 parent e0b14a5 commit 8eb8494d7a76db96c3a76f766a8f0f933bd6653b
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/app/qgsmaptooladdcircularstring.cpp
@@ -144,6 +144,16 @@ void QgsMapToolAddCircularString::activate()
QgsPointV2 endPointLayerCoord = curve->endPoint();
QgsPoint mapPoint = toMapCoordinates( mCanvas->currentLayer(), QgsPoint( endPointLayerCoord.x(), endPointLayerCoord.y() ) );
mPoints.append( QgsPointV2( mapPoint ) );
if ( !mTempRubberBand )
{
mTempRubberBand = createGeometryRubberBand(( mode() == CapturePolygon ) ? QGis::Polygon : QGis::Line, true );
mTempRubberBand->show();
}
QgsCircularStringV2* c = new QgsCircularStringV2();
QList< QgsPointV2 > rubberBandPoints = mPoints;
rubberBandPoints.append( QgsPointV2( mapPoint ) );
c->setPoints( rubberBandPoints );
mTempRubberBand->setGeometry( c );
}
}
}

0 comments on commit 8eb8494

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