Skip to content
Permalink
Browse files

group CRS project property updates in the same place

  • Loading branch information
leyan committed Jan 23, 2014
1 parent c9b85b0 commit eae4c2e1a12c2bee06db66df8eb34c3b327a839d
Showing with 2 additions and 5 deletions.
  1. +0 −5 src/app/qgisapp.cpp
  2. +2 −0 src/app/qgsprojectproperties.cpp
@@ -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();
}

@@ -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() )

0 comments on commit eae4c2e

Please sign in to comment.
You can’t perform that action at this time.