Skip to content

Commit 0748867

Browse files
committed
Adjusted major/minor printout
1 parent 5d88748 commit 0748867

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/app/qgsoptions.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)