Skip to content

Commit

Permalink
#9060: fix bad ellipsoid selection from srs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 authored and wonder-sk committed Feb 20, 2014
1 parent 32fc721 commit c784c09
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -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 );
}

/*!
Expand Down

0 comments on commit c784c09

Please sign in to comment.