diff --git a/src/core/georeferencing.cpp b/src/core/georeferencing.cpp index 33b62c984..be634b996 100644 --- a/src/core/georeferencing.cpp +++ b/src/core/georeferencing.cpp @@ -1208,11 +1208,11 @@ MapCoordF Georeferencing::toMapCoordF(const Georeferencing* other, const MapCoor bool ok_forward = proj_transform.isValid(); bool ok_inverse = other->proj_transform.isValid(); QPointF projected = other->toProjectedCoords(map_coords); - if (ok_forward && ok_inverse) { + if (ok_forward && ok_inverse) + { // Use geographic coordinates as intermediate step to enforce // that coordinates are assumed to have WGS84 datum if datum is specified in only one CRS spec. /// \todo Use direct pipeline instead of intermediate WGS84 - bool ok_inverse, ok_forward; projected = proj_transform.forward(other->proj_transform.inverse(projected, &ok_inverse), &ok_forward); } if (ok)