aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pj_inv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pj_inv.c b/src/pj_inv.c
index 3219d319..ed05618a 100644
--- a/src/pj_inv.c
+++ b/src/pj_inv.c
@@ -18,8 +18,9 @@ LP pj_inv(XY xy, PJ *P) {
errno = pj_errno = 0;
P->ctx->last_errno = 0;
- xy.x = (xy.x * P->to_meter - P->x0 * P->to_meter) * P->ra; /* descale and de-offset */
- xy.y = (xy.y * P->to_meter - P->y0 * P->to_meter) * P->ra;
+ /* descale and de-offset */
+ xy.x = (xy.x * P->to_meter - P->x0) * P->ra;
+ xy.y = (xy.y * P->to_meter - P->y0) * P->ra;
/* Check for NULL pointer */
if (P->inv != NULL) {