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;