Skip to content

Commit

Permalink
Merge pull request #736 from Oslandia/issue7441
Browse files Browse the repository at this point in the history
fix issue7441
  • Loading branch information
jef-n committed Jul 16, 2013
2 parents 29a4bc0 + be7a026 commit 13c71d4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/app/qgsprojectproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,11 @@ void QgsProjectProperties::on_cbxProjectionEnabled_toggled( bool onFlyEnabled )
btnGrpMapUnits->setTitle( unitsOnFlyState.arg( tr( "ON" ) ) );
}

setMapUnitsToCurrentProjection();

// Enable/Disable selector and update tool-tip
updateEllipsoidUI( mEllipsoidIndex );
updateEllipsoidUI( mEllipsoidIndex ); // maybe already done by setMapUnitsToCurrentProjection

}

void QgsProjectProperties::cbxWFSPubliedStateChanged( int aIdx )
Expand Down Expand Up @@ -906,6 +909,20 @@ void QgsProjectProperties::setMapUnitsToCurrentProjection()
radMeters->setChecked( units == QGis::Meters );
radFeet->setChecked( units == QGis::Feet );
radDegrees->setChecked( units == QGis::Degrees );

// attempt to reset the projection ellipsoid according to the srs
{
int myIndex = 0;
for ( int i = 0; i < mEllipsoidList.length(); i++ )
{
if ( mEllipsoidList[ i ].description == srs.description() )
{
myIndex = i;
break;
}
}
if ( myIndex ) updateEllipsoidUI( myIndex );
}
}
}

Expand Down

0 comments on commit 13c71d4

Please sign in to comment.