File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
330
330
QgsGenericProjectionSelector *mySelector = new QgsGenericProjectionSelector ();
331
331
mySelector->setMessage ( srs->validationHint () ); // shows a generic message, if not specified
332
332
if ( authid.isNull () )
333
- authid = QgsProject ::instance ()->readEntry ( " SpatialRefSys " , " /ProjectCrs " , GEO_EPSG_CRS_AUTHID );
333
+ authid = QgisApp ::instance ()->mapCanvas ()-> mapRenderer ()-> destinationCrs (). authid ( );
334
334
QgsCoordinateReferenceSystem defaultCrs;
335
335
if ( defaultCrs.createFromOgcWmsCrs ( authid ) )
336
336
{
@@ -353,7 +353,7 @@ static void customSrsValidation_( QgsCoordinateReferenceSystem* srs )
353
353
else if ( myDefaultProjectionOption == " useProject" )
354
354
{
355
355
// 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 ( );
357
357
QgsDebugMsg ( " Layer srs set from project: " + authid );
358
358
QgisApp::instance ()->statusBar ()->showMessage ( QObject::tr ( " CRS undefined - defaulting to project CRS" ) );
359
359
srs->createFromOgcWmsCrs ( authid );
You can’t perform that action at this time.
0 commit comments