projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4661412
)
Music locked regions stay positive after tempo map change.
author
nick_m
<mainsbridge@gmail.com>
Mon, 17 Oct 2016 15:12:33 +0000
(
02:12
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Mon, 17 Oct 2016 15:12:33 +0000
(
02:12
+1100)
libs/ardour/region.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/region.cc
b/libs/ardour/region.cc
index f67deb0b71c862966325ca1f82241cfb0ab80200..9574062bbf885726c722dd8697c032147ebc1f52 100644
(file)
--- a/
libs/ardour/region.cc
+++ b/
libs/ardour/region.cc
@@
-573,7
+573,8
@@
Region::update_after_tempo_map_change (bool send)
return;
}
- const framepos_t pos = _session.tempo_map().frame_at_beat (_beat);
+ /* prevent movement before 0 */
+ const framepos_t pos = max ((framepos_t) 0, _session.tempo_map().frame_at_beat (_beat));
/* we have _beat. update frame position non-musically */
set_position_internal (pos, false, 0);