Skip to content

Commit 1173862

Browse files
authored
GMT_Put_Vector: Fix a bug when passing longitude/latitude strings (#8600)
1 parent e5ec133 commit 1173862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gmt_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15579,9 +15579,9 @@ int GMT_Put_Vector (void *V_API, struct GMT_VECTOR *V, unsigned int col, unsigne
1557915579
}
1558015580
if (special_type == GMT_DATETIME || gmtlib_maybe_abstime (API->GMT, text)) /* Honor backwards compatibility for GMT_DATETIME */
1558115581
L_type = GMT_IS_ABSTIME;
15582-
else if (strchr ("WE", text[L]))
15582+
else if (strchr ("WE", text[L-1]))
1558315583
L_type = GMT_IS_LON;
15584-
else if (strchr ("SN", text[L]))
15584+
else if (strchr ("SN", text[L-1]))
1558515585
L_type = GMT_IS_LAT;
1558615586
else if (strchr (text, ':'))
1558715587
L_type = GMT_IS_GEO;

0 commit comments

Comments
 (0)