mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
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.
This commit is contained in:
parent
cc30495ba0
commit
25ed864d87
1 changed files with 1 additions and 1 deletions
|
|
@ -918,7 +918,7 @@ Editor::find_next_region_boundary (timepos_t const & pos, int32_t dir, const Tra
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
d = contender.distance (pos);
|
d = pos.distance (contender).abs();
|
||||||
|
|
||||||
if (d < distance) {
|
if (d < distance) {
|
||||||
current_nearest = contender;
|
current_nearest = contender;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue