File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ void QgisApp::validateCrs( QgsCoordinateReferenceSystem &srs )
533
533
QgsProjectionSelectionDialog *mySelector = new QgsProjectionSelectionDialog();
534
534
mySelector->setMessage( srs.validationHint() ); //shows a generic message, if not specified
535
535
if ( sAuthId.isNull() )
536
- sAuthId = QgisApp ::instance ()->mapCanvas ()-> mapSettings (). destinationCrs ().authid ();
536
+ sAuthId = QgsProject ::instance()->crs ().authid();
537
537
538
538
QgsCoordinateReferenceSystem defaultCrs = QgsCoordinateReferenceSystem::fromOgcWmsCrs( sAuthId );
539
539
if ( defaultCrs.isValid() )
@@ -10535,7 +10535,7 @@ void QgisApp::updateCrsStatusBar()
10535
10535
mOnTheFlyProjectionStatusButton->setText( QgsProject::instance()->crs().authid() );
10536
10536
10537
10537
mOnTheFlyProjectionStatusButton->setToolTip(
10538
- tr ( " Current CRS: %1" ).arg ( mMapCanvas -> mapSettings (). destinationCrs ().description () ) );
10538
+ tr( "Current CRS: %1" ).arg( QgsProject::instance()->crs ().description() ) );
10539
10539
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconProjectionEnabled.svg" ) ) );
10540
10540
}
10541
10541
else
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
186
186
if ( defaultProjectionOption == QLatin1String ( " prompt" ) )
187
187
{
188
188
QgsCoordinateReferenceSystem defaultCrs =
189
- QgisApp ::instance ()->mapCanvas ()-> mapSettings (). destinationCrs ();
189
+ QgsProject ::instance ()->crs ();
190
190
if ( layerCrs == defaultCrs )
191
191
mNoticeLabel ->setText ( " NOTICE: Layer srs set from project (" + defaultCrs.authid () + ' )' );
192
192
}
You can’t perform that action at this time.
0 commit comments