projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5dc7a0
)
ensure non-zero midi region length when tempo map changes.
author
nick_m
<mainsbridge@gmail.com>
Tue, 8 Nov 2016 15:01:22 +0000
(
02:01
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Thu, 10 Nov 2016 16:37:08 +0000
(
03:37
+1100)
libs/ardour/midi_region.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/midi_region.cc
b/libs/ardour/midi_region.cc
index 869cb487e48eeb72c24e842f4ce4bb69adf4eb01..7f98f191f7c3e7604412a74aab4760baf73665e3 100644
(file)
--- a/
libs/ardour/midi_region.cc
+++ b/
libs/ardour/midi_region.cc
@@
-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);