mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
Fix loss of transform context changes when editing project CRS in project properties dialog
This commit is contained in:
parent
0b6fdd9b09
commit
fe50e24ccf
@ -943,6 +943,10 @@ void QgsProjectProperties::apply()
|
||||
{
|
||||
mMapCanvas->enableMapTileRendering( mMapTileRenderingCheckBox->isChecked() );
|
||||
|
||||
// important - set the transform context first, as changing the project CRS may otherwise change this and
|
||||
// cause loss of user changes
|
||||
QgsCoordinateTransformContext transformContext = mDatumTransformTableWidget->transformContext();
|
||||
QgsProject::instance()->setTransformContext( transformContext );
|
||||
if ( projectionSelector->hasValidSelection() )
|
||||
{
|
||||
QgsCoordinateReferenceSystem srs = projectionSelector->crs();
|
||||
@ -962,9 +966,6 @@ void QgsProjectProperties::apply()
|
||||
projectionSelector->pushProjectionToFront();
|
||||
}
|
||||
|
||||
QgsCoordinateTransformContext transformContext = mDatumTransformTableWidget->transformContext();
|
||||
QgsProject::instance()->setTransformContext( transformContext );
|
||||
|
||||
mMetadataWidget->acceptMetadata();
|
||||
|
||||
// Set the project title
|
||||
|
Loading…
x
Reference in New Issue
Block a user