Skip to content

Commit 8f08920

Browse files
author
jef
committedApr 18, 2011
fix #3757
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15764 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
330330
QgsGenericProjectionSelector *mySelector = new QgsGenericProjectionSelector();
331331
mySelector->setMessage( srs->validationHint() ); //shows a generic message, if not specified
332332
if ( authid.isNull() )
333-
authid = QgsProject::instance()->readEntry( "SpatialRefSys", "/ProjectCrs", GEO_EPSG_CRS_AUTHID );
333+
authid = QgisApp::instance()->mapCanvas()->mapRenderer()->destinationCrs().authid();
334334
QgsCoordinateReferenceSystem defaultCrs;
335335
if ( defaultCrs.createFromOgcWmsCrs( authid ) )
336336
{
@@ -353,7 +353,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
353353
else if ( myDefaultProjectionOption == "useProject" )
354354
{
355355
// XXX TODO: Change project to store selected CS as 'projectCRS' not 'selectedWkt'
356-
authid = QgsProject::instance()->readEntry( "SpatialRefSys", "/ProjectCrs", GEO_EPSG_CRS_AUTHID );
356+
authid = QgisApp::instance()->mapCanvas()->mapRenderer()->destinationCrs().authid();
357357
QgsDebugMsg( "Layer srs set from project: " + authid );
358358
QgisApp::instance()->statusBar()->showMessage( QObject::tr( "CRS undefined - defaulting to project CRS" ) );
359359
srs->createFromOgcWmsCrs( authid );

0 commit comments

Comments
 (0)
Please sign in to comment.