File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1706,6 +1706,8 @@ void QgsOptions::updateEllipsoidUI( int newIndex )
17061706 mEllipsoidIndex = newIndex;
17071707 leSemiMajor->setEnabled ( false );
17081708 leSemiMinor->setEnabled ( false );
1709+ leSemiMajor->setText ( " " );
1710+ leSemiMinor->setText ( " " );
17091711 if ( QgisApp::instance ()->mapCanvas ()->mapRenderer ()->hasCrsTransformEnabled () )
17101712 {
17111713 cmbEllipsoid->setEnabled ( true );
@@ -1721,13 +1723,15 @@ void QgsOptions::updateEllipsoidUI( int newIndex )
17211723 leSemiMinor->setToolTip ( QString ( " Select %1 from pull-down menu to adjust radii" ).arg ( tr ( " Parameters:" ) ) );
17221724 }
17231725 cmbEllipsoid->setCurrentIndex ( mEllipsoidIndex ); // Not always necessary
1726+ if ( mEllipsoidList [ mEllipsoidIndex ].acronym != GEO_NONE )
1727+ {
1728+ leSemiMajor->setText ( QLocale::system ().toString ( myMajor, ' f' , 3 ) );
1729+ leSemiMinor->setText ( QLocale::system ().toString ( myMinor, ' f' , 3 ) );
1730+ }
17241731 }
17251732 else
17261733 {
17271734 cmbEllipsoid->setEnabled ( false );
17281735 cmbEllipsoid->setToolTip ( tr ( " Can only use ellipsoidal calculations when CRS transformation is enabled" ) );
17291736 }
1730- leSemiMajor->setText ( QLocale::system ().toString ( myMajor, ' f' , 3 ) );
1731- leSemiMinor->setText ( QLocale::system ().toString ( myMinor, ' f' , 3 ) );
1732-
17331737}
You can’t perform that action at this time.
0 commit comments