Skip to content
Permalink
Browse files

remove useless code

  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 11, 2021
1 parent 42b2ec3 commit 19f925d30c65e678f11d61de3a0a37613587bf5a
Showing with 0 additions and 3 deletions.
  1. +0 −3 tests/src/app/testqgsmaptooladdfeatureline.cpp
@@ -851,8 +851,6 @@ void TestQgsMapToolAddFeatureLine::testDifferentCrs()
utils.mouseClick( 2, 4, Qt::LeftButton, Qt::KeyboardModifiers(), true );
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)";

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

newFid = utils.newFeatureId( oldFids );
// (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)";
QCOMPARE( mLayerCRS3945Line->getFeature( mFidLine3945 ).geometry().asWkt( 2 ), QgsGeometry::fromWkt( new3945Wkt ).asWkt( 2 ) );

0 comments on commit 19f925d

Please sign in to comment.