Skip to content

Commit

Permalink
Don't apply CRS settings to current project after closing options box…
Browse files Browse the repository at this point in the history
… - it should only be used when a new project is created. - continuation of r15421

git-svn-id: http://svn.osgeo.org/qgis/trunk@15425 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Mar 10, 2011
1 parent c219001 commit 9724f79
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/app/qgisapp.cpp
Expand Up @@ -4831,18 +4831,6 @@ void QgisApp::options()
double zoomFactor = mySettings.value( "/qgis/zoom_factor", 2 ).toDouble();
mMapCanvas->setWheelAction(( QgsMapCanvas::WheelAction ) action, zoomFactor );

// set project CRS
QgsMapRenderer* myRenderer = mMapCanvas->mapRenderer();
QString defCrs = mySettings.value( "/Projections/projectDefaultCrs", GEO_EPSG_CRS_AUTHID ).toString();
QgsCoordinateReferenceSystem srs;
srs.createFromOgcWmsCrs( defCrs );
myRenderer->setDestinationSrs( srs );
// write the projections _proj string_ to project settings
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCrs", defCrs );
if ( srs.mapUnits() != QGis::UnknownUnit )
{
myRenderer->setMapUnits( srs.mapUnits() );
}
//do we need this? TS
mMapCanvas->refresh();
}
Expand Down

0 comments on commit 9724f79

Please sign in to comment.