Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 11, 2021
1 parent 42b2ec3 commit 19f925d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/src/app/testqgsmaptooladdfeatureline.cpp
Expand Up @@ -851,8 +851,6 @@ void TestQgsMapToolAddFeatureLine::testDifferentCrs()
utils.mouseClick( 2, 4, Qt::LeftButton, Qt::KeyboardModifiers(), true ); utils.mouseClick( 2, 4, Qt::LeftButton, Qt::KeyboardModifiers(), true );
utils.mouseClick( 2, 4, Qt::RightButton ); utils.mouseClick( 2, 4, Qt::RightButton );


QgsFeatureId newFid = utils.newFeatureId( oldFids );
QString newWkt = "LineString (-2 4, 0 4, 2 4)";
QString new3946Wkt = "LineString (0 0, 0 4, 0 10)"; QString new3946Wkt = "LineString (0 0, 0 4, 0 10)";


QCOMPARE( mLayerCRS3946Line->getFeature( mFidLine3946 ).geometry().asWkt( 0 ), new3946Wkt ); // use wkt to avoid float rounding errors QCOMPARE( mLayerCRS3946Line->getFeature( mFidLine3946 ).geometry().asWkt( 0 ), new3946Wkt ); // use wkt to avoid float rounding errors
Expand All @@ -864,7 +862,6 @@ void TestQgsMapToolAddFeatureLine::testDifferentCrs()
utils.mouseClick( 8, 4, Qt::LeftButton, Qt::KeyboardModifiers(), true ); utils.mouseClick( 8, 4, Qt::LeftButton, Qt::KeyboardModifiers(), true );
utils.mouseClick( 8, 4, Qt::RightButton ); utils.mouseClick( 8, 4, Qt::RightButton );


newFid = utils.newFeatureId( oldFids );
// (2 2, 8 2, 8 4, 8 8) transformed from 3946 to 3945 // (2 2, 8 2, 8 4, 8 8) transformed from 3946 to 3945
QString new3945Wkt = "LineString (17441.5859966475982219 -862119.21677098423242569, 17441.58100318093784153 -862117.23846332356333733, 17441.57101624645292759 -862113.28184797242283821)"; QString new3945Wkt = "LineString (17441.5859966475982219 -862119.21677098423242569, 17441.58100318093784153 -862117.23846332356333733, 17441.57101624645292759 -862113.28184797242283821)";
QCOMPARE( mLayerCRS3945Line->getFeature( mFidLine3945 ).geometry().asWkt( 2 ), QgsGeometry::fromWkt( new3945Wkt ).asWkt( 2 ) ); QCOMPARE( mLayerCRS3945Line->getFeature( mFidLine3945 ).geometry().asWkt( 2 ), QgsGeometry::fromWkt( new3945Wkt ).asWkt( 2 ) );
Expand Down

0 comments on commit 19f925d

Please sign in to comment.