File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -834,8 +834,11 @@ void QgsProjectProperties::on_cbxProjectionEnabled_toggled( bool onFlyEnabled )
834
834
btnGrpMapUnits->setTitle ( unitsOnFlyState.arg ( tr ( " ON" ) ) );
835
835
}
836
836
837
+ setMapUnitsToCurrentProjection ();
838
+
837
839
// Enable/Disable selector and update tool-tip
838
- updateEllipsoidUI ( mEllipsoidIndex );
840
+ updateEllipsoidUI ( mEllipsoidIndex ); // maybe already done by setMapUnitsToCurrentProjection
841
+
839
842
}
840
843
841
844
void QgsProjectProperties::cbxWFSPubliedStateChanged ( int aIdx )
@@ -906,6 +909,20 @@ void QgsProjectProperties::setMapUnitsToCurrentProjection()
906
909
radMeters->setChecked ( units == QGis::Meters );
907
910
radFeet->setChecked ( units == QGis::Feet );
908
911
radDegrees->setChecked ( units == QGis::Degrees );
912
+
913
+ // attempt to reset the projection ellipsoid according to the srs
914
+ {
915
+ int myIndex = 0 ;
916
+ for ( int i = 0 ; i < mEllipsoidList .length (); i++ )
917
+ {
918
+ if ( mEllipsoidList [ i ].description == srs.description () )
919
+ {
920
+ myIndex = i;
921
+ break ;
922
+ }
923
+ }
924
+ if ( myIndex ) updateEllipsoidUI ( myIndex );
925
+ }
909
926
}
910
927
}
911
928
You can’t perform that action at this time.
0 commit comments