Skip to content
Permalink
Browse files

Don't apply CRS settings to current project after closing options box…

… - 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
borysiasty committed Mar 10, 2011
1 parent c219001 commit 9724f79ab6a0b32b8cf6d3c113befafa516ca051
Showing with 0 additions and 12 deletions.
  1. +0 −12 src/app/qgisapp.cpp
@@ -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();
}

0 comments on commit 9724f79

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