@@ -3209,39 +3209,39 @@ void QgisApp::createCanvasTools()
3209
3209
mMapTools .mAnnotation ->setAction ( mActionAnnotation );
3210
3210
mMapTools .mAddFeature = new QgsMapToolAddFeature ( mMapCanvas , QgsMapToolCapture::CaptureNone );
3211
3211
mMapTools .mAddFeature ->setAction ( mActionAddFeature );
3212
- mMapTools .mCircularStringCurvePoint = new QgsMapToolCircularStringCurvePoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3212
+ mMapTools .mCircularStringCurvePoint = new QgsMapToolCircularStringCurvePoint ( mMapTools .mAddFeature , mMapCanvas );
3213
3213
mMapTools .mCircularStringCurvePoint ->setAction ( mActionCircularStringCurvePoint );
3214
- mMapTools .mCircularStringRadius = new QgsMapToolCircularStringRadius ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3214
+ mMapTools .mCircularStringRadius = new QgsMapToolCircularStringRadius ( mMapTools .mAddFeature , mMapCanvas );
3215
3215
mMapTools .mCircularStringRadius ->setAction ( mActionCircularStringRadius );
3216
- mMapTools .mCircle2Points = new QgsMapToolCircle2Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3216
+ mMapTools .mCircle2Points = new QgsMapToolCircle2Points ( mMapTools .mAddFeature , mMapCanvas );
3217
3217
mMapTools .mCircle2Points ->setAction ( mActionCircle2Points );
3218
- mMapTools .mCircle3Points = new QgsMapToolCircle3Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3218
+ mMapTools .mCircle3Points = new QgsMapToolCircle3Points ( mMapTools .mAddFeature , mMapCanvas );
3219
3219
mMapTools .mCircle3Points ->setAction ( mActionCircle3Points );
3220
- mMapTools .mCircle3Tangents = new QgsMapToolCircle3Tangents ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3220
+ mMapTools .mCircle3Tangents = new QgsMapToolCircle3Tangents ( mMapTools .mAddFeature , mMapCanvas );
3221
3221
mMapTools .mCircle3Tangents ->setAction ( mActionCircle3Tangents );
3222
- mMapTools .mCircle2TangentsPoint = new QgsMapToolCircle2TangentsPoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3222
+ mMapTools .mCircle2TangentsPoint = new QgsMapToolCircle2TangentsPoint ( mMapTools .mAddFeature , mMapCanvas );
3223
3223
mMapTools .mCircle2TangentsPoint ->setAction ( mActionCircle2TangentsPoint );
3224
- mMapTools .mCircleCenterPoint = new QgsMapToolCircleCenterPoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3224
+ mMapTools .mCircleCenterPoint = new QgsMapToolCircleCenterPoint ( mMapTools .mAddFeature , mMapCanvas );
3225
3225
mMapTools .mCircleCenterPoint ->setAction ( mActionCircleCenterPoint );
3226
- mMapTools .mEllipseCenter2Points = new QgsMapToolEllipseCenter2Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3226
+ mMapTools .mEllipseCenter2Points = new QgsMapToolEllipseCenter2Points ( mMapTools .mAddFeature , mMapCanvas );
3227
3227
mMapTools .mEllipseCenter2Points ->setAction ( mActionEllipseCenter2Points );
3228
- mMapTools .mEllipseCenterPoint = new QgsMapToolEllipseCenterPoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3228
+ mMapTools .mEllipseCenterPoint = new QgsMapToolEllipseCenterPoint ( mMapTools .mAddFeature , mMapCanvas );
3229
3229
mMapTools .mEllipseCenterPoint ->setAction ( mActionEllipseCenterPoint );
3230
- mMapTools .mEllipseExtent = new QgsMapToolEllipseExtent ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3230
+ mMapTools .mEllipseExtent = new QgsMapToolEllipseExtent ( mMapTools .mAddFeature , mMapCanvas );
3231
3231
mMapTools .mEllipseExtent ->setAction ( mActionEllipseExtent );
3232
- mMapTools .mEllipseFoci = new QgsMapToolEllipseFoci ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3232
+ mMapTools .mEllipseFoci = new QgsMapToolEllipseFoci ( mMapTools .mAddFeature , mMapCanvas );
3233
3233
mMapTools .mEllipseFoci ->setAction ( mActionEllipseFoci );
3234
- mMapTools .mRectangleCenterPoint = new QgsMapToolRectangleCenter ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3234
+ mMapTools .mRectangleCenterPoint = new QgsMapToolRectangleCenter ( mMapTools .mAddFeature , mMapCanvas );
3235
3235
mMapTools .mRectangleCenterPoint ->setAction ( mActionRectangleCenterPoint );
3236
- mMapTools .mRectangleExtent = new QgsMapToolRectangleExtent ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3236
+ mMapTools .mRectangleExtent = new QgsMapToolRectangleExtent ( mMapTools .mAddFeature , mMapCanvas );
3237
3237
mMapTools .mRectangleExtent ->setAction ( mActionRectangleExtent );
3238
- mMapTools .mRectangle3Points = new QgsMapToolRectangle3Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3238
+ mMapTools .mRectangle3Points = new QgsMapToolRectangle3Points ( mMapTools .mAddFeature , mMapCanvas );
3239
3239
mMapTools .mRectangle3Points ->setAction ( mActionRectangle3Points );
3240
- mMapTools .mRegularPolygon2Points = new QgsMapToolRegularPolygon2Points ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3240
+ mMapTools .mRegularPolygon2Points = new QgsMapToolRegularPolygon2Points ( mMapTools .mAddFeature , mMapCanvas );
3241
3241
mMapTools .mRegularPolygon2Points ->setAction ( mActionRegularPolygon2Points );
3242
- mMapTools .mRegularPolygonCenterPoint = new QgsMapToolRegularPolygonCenterPoint ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3242
+ mMapTools .mRegularPolygonCenterPoint = new QgsMapToolRegularPolygonCenterPoint ( mMapTools .mAddFeature , mMapCanvas );
3243
3243
mMapTools .mRegularPolygonCenterPoint ->setAction ( mActionRegularPolygonCenterPoint );
3244
- mMapTools .mRegularPolygonCenterCorner = new QgsMapToolRegularPolygonCenterCorner ( dynamic_cast <QgsMapToolAddFeature *>( mMapTools .mAddFeature ) , mMapCanvas );
3244
+ mMapTools .mRegularPolygonCenterCorner = new QgsMapToolRegularPolygonCenterCorner ( mMapTools .mAddFeature , mMapCanvas );
3245
3245
mMapTools .mRegularPolygonCenterCorner ->setAction ( mActionRegularPolygonCenterCorner );
3246
3246
mMapTools .mMoveFeature = new QgsMapToolMoveFeature ( mMapCanvas , QgsMapToolMoveFeature::Move );
3247
3247
mMapTools .mMoveFeature ->setAction ( mActionMoveFeature );
0 commit comments