Skip to content
Permalink
Browse files
#9060: fix bad ellipsoid selection from srs
  • Loading branch information
ahuarte47 authored and wonder-sk committed Feb 20, 2014
1 parent 32fc721 commit c784c09f049f1d6472637b2aa603356fa7cd4280
Showing with 10 additions and 5 deletions.
  1. +10 −5 src/app/qgsprojectproperties.cpp
@@ -1029,11 +1029,16 @@ void QgsProjectProperties::setMapUnitsToCurrentProjection()
radDegrees->setChecked( units == QGis::Degrees );

// attempt to reset the projection ellipsoid according to the srs
int i;
for ( i = 0; i < mEllipsoidList.length() && mEllipsoidList[ i ].description != srs.description(); i++ )
;
if ( i < mEllipsoidList.length() )
updateEllipsoidUI( i );
int myIndex = 0;
for ( int i = 0; i < mEllipsoidList.length(); i++ )
{
if ( mEllipsoidList[ i ].acronym == srs.ellipsoidAcronym() )
{
myIndex = i;
break;
}
}
updateEllipsoidUI( myIndex );
}

/*!

0 comments on commit c784c09

Please sign in to comment.