File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -943,6 +943,10 @@ void QgsProjectProperties::apply()
943
943
{
944
944
mMapCanvas ->enableMapTileRendering ( mMapTileRenderingCheckBox ->isChecked () );
945
945
946
+ // important - set the transform context first, as changing the project CRS may otherwise change this and
947
+ // cause loss of user changes
948
+ QgsCoordinateTransformContext transformContext = mDatumTransformTableWidget ->transformContext ();
949
+ QgsProject::instance ()->setTransformContext ( transformContext );
946
950
if ( projectionSelector->hasValidSelection () )
947
951
{
948
952
QgsCoordinateReferenceSystem srs = projectionSelector->crs ();
@@ -962,9 +966,6 @@ void QgsProjectProperties::apply()
962
966
projectionSelector->pushProjectionToFront ();
963
967
}
964
968
965
- QgsCoordinateTransformContext transformContext = mDatumTransformTableWidget ->transformContext ();
966
- QgsProject::instance ()->setTransformContext ( transformContext );
967
-
968
969
mMetadataWidget ->acceptMetadata ();
969
970
970
971
// Set the project title
You can’t perform that action at this time.
0 commit comments