diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_cea.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PJ_cea.c b/src/PJ_cea.c index 786eadcb..f5b78838 100644 --- a/src/PJ_cea.c +++ b/src/PJ_cea.c @@ -43,9 +43,8 @@ ENTRY1(cea, apa) double t; if (pj_param(P->ctx, P->params, "tlat_ts").i && - (P->k0 = cos(t = pj_param(P->ctx, P->params, "rlat_ts").f)) < 0.) E_ERROR(-24) - else - t = 0.; + (P->k0 = cos(t = pj_param(P->ctx, P->params, "rlat_ts").f)) < 0.) + E_ERROR(-24); if (P->es) { t = sin(t); P->k0 /= sqrt(1. - P->es * t * t); |
