Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GMT_Put_Vector: Fix a bug when passing longitude/latitude strings #8600

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading