Skip to content

Commit

Permalink
Fix #12406 (measured area is wrong when computed on ellipsoid)
Browse files Browse the repository at this point in the history
Introduced in e568493
wonder-sk committed May 21, 2015
1 parent a80c349 commit 19c1dc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgsdistancearea.cpp
Original file line number Diff line number Diff line change
@@ -232,10 +232,11 @@ bool QgsDistanceArea::setEllipsoid( const QString& ellipsoid )
// set transformation from project CRS to ellipsoid coordinates
mCoordTransform->setDestCRS( destCRS );

mEllipsoid = ellipsoid;

// precalculate some values for area calculations
computeAreaInit();

mEllipsoid = ellipsoid;
return true;
}

0 comments on commit 19c1dc6

Please sign in to comment.