@@ -302,7 +302,6 @@ void TestQgsMapToolAddFeatureLine::testTracing()
302
302
mEnableTracingAction ->setChecked ( false );
303
303
}
304
304
305
-
306
305
void TestQgsMapToolAddFeatureLine::testTracingWithOffset ()
307
306
{
308
307
TestQgsMapToolAdvancedDigitizingUtils utils ( mCaptureTool );
@@ -381,7 +380,6 @@ void TestQgsMapToolAddFeatureLine::testTracingWithOffset()
381
380
mEnableTracingAction ->setChecked ( false );
382
381
}
383
382
384
-
385
383
void TestQgsMapToolAddFeatureLine::testTracingWithConvertToCurves ()
386
384
{
387
385
TestQgsMapToolAdvancedDigitizingUtils utils ( mCaptureTool );
@@ -403,8 +401,8 @@ void TestQgsMapToolAddFeatureLine::testTracingWithConvertToCurves()
403
401
QgsFeatureId newFid1 = utils.newFeatureId ( oldFids );
404
402
405
403
const QgsAbstractGeometry *g = mLayerLineCurved ->getFeature ( newFid1 ).geometry ().constGet ();
406
- QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , 0 ) ), QgsPointXY ( 6 , 1 ) );
407
- QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , g->vertexCount () - 1 ) ), QgsPointXY ( 7 , 1 ) );
404
+ QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , 0 ) ), QgsPoint ( 6 , 1 ) );
405
+ QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , g->vertexCount () - 1 ) ), QgsPoint ( 7 , 1 ) );
408
406
QVERIFY ( g->vertexCount () > 3 ); // a segmentized arc has (much) more than 3 points
409
407
410
408
mLayerLineCurved ->undoStack ()->undo ();
@@ -420,8 +418,8 @@ void TestQgsMapToolAddFeatureLine::testTracingWithConvertToCurves()
420
418
QgsFeatureId newFid2 = utils.newFeatureId ( oldFids );
421
419
422
420
g = mLayerLineCurved ->getFeature ( newFid2 ).geometry ().constGet ();
423
- QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , 0 ) ), QgsPointXY ( 6 , 1 ) );
424
- QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , g->vertexCount () - 1 ) ), QgsPointXY ( 7 , 1 ) );
421
+ QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , 0 ) ), QgsPoint ( 6 , 1 ) );
422
+ QCOMPARE ( g->vertexAt ( QgsVertexId ( 0 , 0 , g->vertexCount () - 1 ) ), QgsPoint ( 7 , 1 ) );
425
423
QVERIFY ( g->vertexCount () == 3 ); // a true arc is composed of 3 vertices
426
424
427
425
mLayerLineCurved ->undoStack ()->undo ();
@@ -432,7 +430,6 @@ void TestQgsMapToolAddFeatureLine::testTracingWithConvertToCurves()
432
430
mEnableTracingAction ->setChecked ( false );
433
431
}
434
432
435
-
436
433
void TestQgsMapToolAddFeatureLine::testZ ()
437
434
{
438
435
TestQgsMapToolAdvancedDigitizingUtils utils ( mCaptureTool );
0 commit comments