aboutsummaryrefslogtreecommitdiff
path: root/src/pj_inv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_inv.c')
-rw-r--r--src/pj_inv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pj_inv.c b/src/pj_inv.c
index 327fef9f..25d416c0 100644
--- a/src/pj_inv.c
+++ b/src/pj_inv.c
@@ -30,13 +30,14 @@
#include <errno.h>
#include "proj_internal.h"
+#include "proj_math.h"
#include "projects.h"
#define INPUT_UNITS P->right
#define OUTPUT_UNITS P->left
static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) {
- if (coo.xyz.x == HUGE_VAL) {
+ if (coo.v[0] == HUGE_VAL || coo.v[1] == HUGE_VAL || coo.v[2] == HUGE_VAL) {
proj_errno_set (P, PJD_ERR_INVALID_X_OR_Y);
return proj_coord_error ();
}