#9060: fix bad ellipsoid selection from srs

This commit is contained in:
ahuarte47 2014-01-15 23:44:05 +01:00 committed by Martin Dobias
parent 32fc721088
commit c784c09f04

View File

@ -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 );
}
/*!