From 418d10bd895e6fe2e7ba0313a98fd498cd227824 Mon Sep 17 00:00:00 2001 From: Esteban82 Date: Tue, 31 Dec 2024 10:53:49 -0300 Subject: [PATCH] exchange GMT_STAIRS modes --- src/gmt_vector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmt_vector.c b/src/gmt_vector.c index a0758514417..cf6db6a08cf 100644 --- a/src/gmt_vector.c +++ b/src/gmt_vector.c @@ -1604,7 +1604,7 @@ uint64_t gmt_fix_up_path (struct GMT_CTRL *GMT, double **a_lon, double **a_lat, else /* No boost needed */ boost = 1.0; - if (mode == GMT_STAIRS_Y) { /* First follow meridian, then parallel */ + if (mode == GMT_STAIRS_X) { /* First follow parallel, then meridian */ gmt_M_set_delta_lon (lon[i-1], lon[i], dlon); /* Beware of jumps due to sign differences */ lon_i = lon[i-1] + dlon; /* Use lon_i instead of lon[i] in the marching since this avoids any jumping */ theta = fabs (dlon) * cosd (lat[i-1]); @@ -1628,7 +1628,7 @@ uint64_t gmt_fix_up_path (struct GMT_CTRL *GMT, double **a_lon, double **a_lat, k = 0; } - else if (mode == GMT_STAIRS_X) { /* First follow parallel, then meridian */ + else if (mode == GMT_STAIRS_Y) { /* First follow meridian, then parallel */ theta = fabs (lat[i]-lat[i-1]); n_step = lrint (theta / step); for (j = 1; j <= n_step; j++) {