Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 8, 2018
1 parent f9be605 commit 500af5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/app/testqgsmaptoolidentifyaction.cpp
Expand Up @@ -268,7 +268,7 @@ void TestQgsMapToolIdentifyAction::lengthCalculation()
length = derivedLength.remove( ',' ).split( ' ' ).at( 0 ).toDouble(); length = derivedLength.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QGSCOMPARENEAR( length, 16.734000, 0.001 ); QGSCOMPARENEAR( length, 16.734000, 0.001 );


// no conversion of cartesian lengths between unit types // no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true ); s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees ); QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() ); result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );
Expand Down Expand Up @@ -342,7 +342,7 @@ void TestQgsMapToolIdentifyAction::perimeterCalculation()
perimeter = derivedPerimeter.remove( ',' ).split( ' ' ).at( 0 ).toDouble(); perimeter = derivedPerimeter.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QCOMPARE( perimeter, 79.711 ); QCOMPARE( perimeter, 79.711 );


// no conversion of cartesian lengths between unit types // no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true ); s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees ); QgsProject::instance()->setDistanceUnits( QgsUnitTypes::DistanceDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() ); result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );
Expand Down Expand Up @@ -418,7 +418,7 @@ void TestQgsMapToolIdentifyAction::areaCalculation()
area = derivedArea.remove( ',' ).split( ' ' ).at( 0 ).toDouble(); area = derivedArea.remove( ',' ).split( ' ' ).at( 0 ).toDouble();
QGSCOMPARENEAR( area, 388.280000, 0.001 ); QGSCOMPARENEAR( area, 388.280000, 0.001 );


// no conversion of cartesian lengths between unit types // no conversion of Cartesian lengths between unit types
s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true ); s.setValue( QStringLiteral( "/qgis/measure/keepbaseunit" ), true );
QgsProject::instance()->setAreaUnits( QgsUnitTypes::AreaSquareDegrees ); QgsProject::instance()->setAreaUnits( QgsUnitTypes::AreaSquareDegrees );
result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() ); result = action->identify( mapPoint.x(), mapPoint.y(), QList<QgsMapLayer *>() << tempLayer.get() );
Expand Down

0 comments on commit 500af5e

Please sign in to comment.