mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Insert time: fix moving of range markers
When inserting time and moving a range marker, move its end first, before moving its start, so that if the time being inserted is greater than the length of the range, we don't try to set its start to after its end.
This commit is contained in:
parent
d059bdb40c
commit
34e1e00f8b
1 changed files with 2 additions and 1 deletions
|
|
@ -7038,10 +7038,11 @@ Editor::insert_time (
|
|||
if ((*i)->position_lock_style() == AudioTime || glued_markers_too) {
|
||||
|
||||
if ((*i)->start() >= pos) {
|
||||
(*i)->set_start ((*i)->start() + frames);
|
||||
// move end first, in case we're moving by more than the length of the range
|
||||
if (!(*i)->is_mark()) {
|
||||
(*i)->set_end ((*i)->end() + frames);
|
||||
}
|
||||
(*i)->set_start ((*i)->start() + frames);
|
||||
moved = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue