diff --git a/src/gmt_support.c b/src/gmt_support.c index f272dd8dbc2..3d52544d861 100644 --- a/src/gmt_support.c +++ b/src/gmt_support.c @@ -15436,7 +15436,7 @@ uint64_t gmt_crossover (struct GMT_CTRL *GMT, double xa[], double ya[], uint64_t tx_a = ta_start + fabs (xc - xa[ta_start]) * i_del_xa; tx_b = tb_start + fabs (xc - xb[tb_start]) * i_del_xb; - if (tx_a < ta_stop && tx_b < tb_stop) { + if (tx_a < ta_stop && tx_b <= tb_stop) { /* Equality means the crossing occurred on the second data node */ X->x[nx] = xc; X->y[nx] = ya[xa_start] + (xc - xa[xa_start]) * slp_a; X->xnode[0][nx] = tx_a; diff --git a/test/baseline/greenspline.dvc b/test/baseline/greenspline.dvc index 03f47605771..b9949d0e293 100644 --- a/test/baseline/greenspline.dvc +++ b/test/baseline/greenspline.dvc @@ -1,5 +1,5 @@ outs: -- md5: 346061c5e8dc2a44a7fe74e6a827c4ea.dir - size: 1581934 +- md5: 416c79243026ec7b60578a5bb74cf8b8.dir nfiles: 8 path: greenspline + hash: md5