aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/projections/imw_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/imw_p.cpp b/src/projections/imw_p.cpp
index 8d675318..5455be33 100644
--- a/src/projections/imw_p.cpp
+++ b/src/projections/imw_p.cpp
@@ -125,7 +125,7 @@ static PJ_LP e_inverse (PJ_XY xy, PJ *P) { /* Ellipsoidal, inverse */
}
lp.phi = ((lp.phi - Q->phi_1) * (xy.y - yc) / denom) + Q->phi_1;
}
- if( t.x != 0 || fabs(t.x - xy.x) > TOL )
+ if( t.x != 0 && fabs(t.x - xy.x) > TOL )
lp.lam = lp.lam * xy.x / t.x;
i ++;
} while (i < N_MAX_ITER &&