Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
group CRS project property updates in the same place
  • Loading branch information
leyan committed Jan 23, 2014
1 parent c9b85b0 commit eae4c2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/qgisapp.cpp
Expand Up @@ -8086,11 +8086,6 @@ void QgisApp::updateCRSStatusBar()

void QgisApp::destinationSrsChanged()
{
// save this information to project
long srsid = mMapCanvas->mapRenderer()->destinationCrs().srsid();
QString srs = mMapCanvas->mapRenderer()->destinationCrs().authid();
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCRSID", ( int )srsid );
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCrs", srs );
updateCRSStatusBar();
}

Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -589,6 +589,8 @@ void QgsProjectProperties::apply()
// write the currently selected projections _proj string_ to project settings
QgsDebugMsg( QString( "SpatialRefSys/ProjectCRSProj4String: %1" ).arg( projectionSelector->selectedProj4String() ) );
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCRSProj4String", projectionSelector->selectedProj4String() );
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCRSID", (int) projectionSelector->selectedCrsId() );
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCrs", projectionSelector->selectedAuthId() );

// Set the map units to the projected coordinates if we are projecting
if ( isProjected() )
Expand Down

0 comments on commit eae4c2e

Please sign in to comment.