Skip to content

Commit

Permalink
GMT_Put_Vector: Fix a bug when passing longitude/latitude strings (#8600
Browse files Browse the repository at this point in the history
)
  • Loading branch information
seisman authored Oct 15, 2024
1 parent e5ec133 commit 1173862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmt_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -15579,9 +15579,9 @@ int GMT_Put_Vector (void *V_API, struct GMT_VECTOR *V, unsigned int col, unsigne
}
if (special_type == GMT_DATETIME || gmtlib_maybe_abstime (API->GMT, text)) /* Honor backwards compatibility for GMT_DATETIME */
L_type = GMT_IS_ABSTIME;
else if (strchr ("WE", text[L]))
else if (strchr ("WE", text[L-1]))
L_type = GMT_IS_LON;
else if (strchr ("SN", text[L]))
else if (strchr ("SN", text[L-1]))
L_type = GMT_IS_LAT;
else if (strchr (text, ':'))
L_type = GMT_IS_GEO;
Expand Down

0 comments on commit 1173862

Please sign in to comment.