Skip to content
Permalink
Browse files

Fix use of uninitialized values when no ellipsoid set (fix #11848)

  • Loading branch information
nyalldawson committed Dec 14, 2014
1 parent d61bf1f commit e568493653a8cd5921ad1835df7911d252f00940
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsdistancearea.cpp
@@ -785,6 +785,12 @@ double QgsDistanceArea::getQbar( double x )

void QgsDistanceArea::computeAreaInit()
{
//don't try to perform calculations if no ellipsoid
if ( mEllipsoid == GEO_NONE )
{
return;
}

double a2 = ( mSemiMajor * mSemiMajor );
double e2 = 1 - ( a2 / ( mSemiMinor * mSemiMinor ) );
double e4, e6;

0 comments on commit e568493

Please sign in to comment.
You can’t perform that action at this time.