aboutsummaryrefslogtreecommitdiff
path: root/src/projections/eck5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projections/eck5.cpp')
-rw-r--r--src/projections/eck5.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/projections/eck5.cpp b/src/projections/eck5.cpp
index bf0e6a42..b39c0ea3 100644
--- a/src/projections/eck5.cpp
+++ b/src/projections/eck5.cpp
@@ -26,7 +26,8 @@ static PJ_XY eck5_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward
static PJ_LP eck5_s_inverse (PJ_XY xy, PJ *P) { /* Spheroidal, inverse */
PJ_LP lp = {0.0,0.0};
(void) P;
- lp.lam = RXF * xy.x / (1. + cos( lp.phi = RYF * xy.y));
+ lp.phi = RYF * xy.y;
+ lp.lam = RXF * xy.x / (1. + cos(lp.phi));
return lp;
}