summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index f67deb0b71..9574062bbf 100644
--- 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);