From ff32fd66d8de78dc08665bd3021b19b8ca19bc0a Mon Sep 17 00:00:00 2001 From: Matthias Kuehlewein Date: Sun, 5 Apr 2026 18:18:44 +0200 Subject: [PATCH] Georeferencing: Fix variable shadowing --- src/core/georeferencing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)