Skip to content

Commit 9724f79

Browse files
author
borysiasty
committedMar 10, 2011
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
1 parent c219001 commit 9724f79

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4831,18 +4831,6 @@ void QgisApp::options()
48314831
double zoomFactor = mySettings.value( "/qgis/zoom_factor", 2 ).toDouble();
48324832
mMapCanvas->setWheelAction(( QgsMapCanvas::WheelAction ) action, zoomFactor );
48334833

4834-
// set project CRS
4835-
QgsMapRenderer* myRenderer = mMapCanvas->mapRenderer();
4836-
QString defCrs = mySettings.value( "/Projections/projectDefaultCrs", GEO_EPSG_CRS_AUTHID ).toString();
4837-
QgsCoordinateReferenceSystem srs;
4838-
srs.createFromOgcWmsCrs( defCrs );
4839-
myRenderer->setDestinationSrs( srs );
4840-
// write the projections _proj string_ to project settings
4841-
QgsProject::instance()->writeEntry( "SpatialRefSys", "/ProjectCrs", defCrs );
4842-
if ( srs.mapUnits() != QGis::UnknownUnit )
4843-
{
4844-
myRenderer->setMapUnits( srs.mapUnits() );
4845-
}
48464834
//do we need this? TS
48474835
mMapCanvas->refresh();
48484836
}

0 commit comments

Comments
 (0)
Please sign in to comment.