mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-28 00:04:04 -04:00
#9060: fix bad ellipsoid selection from srs
This commit is contained in:
parent
32fc721088
commit
c784c09f04
@ -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 );
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user