diff --git a/app/test/testmaptools.cpp b/app/test/testmaptools.cpp index 75c868d7d..c90fb4de2 100644 --- a/app/test/testmaptools.cpp +++ b/app/test/testmaptools.cpp @@ -292,7 +292,7 @@ void TestMapTools::testMeasuring() measurementTool->setMapSettings( ms ); QgsDistanceArea distanceArea; - distanceArea.setEllipsoid( QStringLiteral( "WGS84" ) ); + distanceArea.setEllipsoid( ms->project()->ellipsoid() ); distanceArea.setSourceCrs( ms->destinationCrs(), ms->transformContext() ); QPointF crosshairPoint1 = ms->coordinateToScreen( QgsPoint( 0, 0 ) );