mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
ensure non-zero midi region length when tempo map changes.
This commit is contained in:
parent
a5dc7a01d3
commit
4e41b71a4e
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ MidiRegion::update_after_tempo_map_change (bool /* send */)
|
|||
Region::update_after_tempo_map_change (false);
|
||||
|
||||
/* _start has now been updated. */
|
||||
_length = _session.tempo_map().frames_between_quarter_notes (pos_beats(), pos_beats() + _length_beats);
|
||||
_length = max ((framecnt_t) 1, _session.tempo_map().frames_between_quarter_notes (pos_beats(), pos_beats() + _length_beats));
|
||||
|
||||
if (old_start != _start) {
|
||||
s_and_l.add (Properties::start);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue