Skip to content

Commit

Permalink
update ProjectCrs property in the project file
Browse files Browse the repository at this point in the history
  • Loading branch information
leyan committed Jan 23, 2014
1 parent 810773a commit c9b85b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -8088,7 +8088,9 @@ 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

0 comments on commit c9b85b0

Please sign in to comment.