From 25ed864d874ddf646e2850f2be0f72dd976fd2cb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 22 Oct 2022 14:15:09 -0600 Subject: [PATCH] fix find next region boundary : must use absolute value of distance This matches semantics in 6.9 and avoids negative distances entering the flow for various next/prev region boundary operations. --- gtk2_ardour/editor_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index f06386729b..eca8c1641f 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -918,7 +918,7 @@ Editor::find_next_region_boundary (timepos_t const & pos, int32_t dir, const Tra continue; } - d = contender.distance (pos); + d = pos.distance (contender).abs(); if (d < distance) { current_nearest = contender;