@@ -808,12 +808,10 @@ void TestQgsVertexTool::testConvertVertex()
808
808
// convert vertex in compoundCurve while moving vertex
809
809
QCOMPARE ( mLayerCompoundCurve ->getFeature ( mFidCompoundCurveF1 ).geometry (), QgsGeometry::fromWkt ( " CompoundCurve ( CircularString (14 14, 10 10, 17 10))" ) );
810
810
mouseClick ( 10 , 10 , Qt::LeftButton );
811
- keyClick ( Qt::Key_C );
812
- mouseClick ( 10 , 10 , Qt::LeftButton );
813
- QCOMPARE ( mLayerCompoundCurve ->undoStack ()->index (), 4 ); // one undo for move, one undo for convert
811
+ keyClick ( Qt::Key_O );
812
+ QCOMPARE ( mLayerCompoundCurve ->undoStack ()->index (), 3 );
814
813
QCOMPARE ( mLayerCompoundCurve ->getFeature ( mFidCompoundCurveF1 ).geometry (), QgsGeometry::fromWkt ( " CompoundCurve ((14 14, 10 10, 17 10))" ) );
815
814
mLayerCompoundCurve ->undoStack ()->undo ();
816
- mLayerCompoundCurve ->undoStack ()->undo ();
817
815
QCOMPARE ( mLayerCompoundCurve ->undoStack ()->index (), 2 );
818
816
QCOMPARE ( mLayerCompoundCurve ->getFeature ( mFidCompoundCurveF1 ).geometry (), QgsGeometry::fromWkt ( " CompoundCurve ( CircularString (14 14, 10 10, 17 10))" ) );
819
817
@@ -822,7 +820,7 @@ void TestQgsVertexTool::testConvertVertex()
822
820
mousePress ( 9.5 , 9.5 , Qt::LeftButton );
823
821
mouseMove ( 10.5 , 10.5 );
824
822
mouseRelease ( 10.5 , 10.5 , Qt::LeftButton );
825
- keyClick ( Qt::Key_C );
823
+ keyClick ( Qt::Key_O );
826
824
QCOMPARE ( mLayerCompoundCurve ->undoStack ()->index (), 3 );
827
825
QCOMPARE ( mLayerCompoundCurve ->getFeature ( mFidCompoundCurveF1 ).geometry (), QgsGeometry::fromWkt ( " CompoundCurve ((14 14, 10 10, 17 10))" ) );
828
826
mLayerCompoundCurve ->undoStack ()->undo ();
0 commit comments