diff options
Diffstat (limited to 'libs/ardour/midi_region.cc')
-rw-r--r-- | libs/ardour/midi_region.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index 6a9e1cd762..7bb5bc7c06 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -196,14 +196,20 @@ MidiRegion::set_length_internal (framecnt_t len) } void -MidiRegion::update_after_tempo_map_change () +MidiRegion::update_after_tempo_map_change (bool /* send */) { - Region::update_after_tempo_map_change (); + Region::update_after_tempo_map_change (false); /* _position has now been updated for the new tempo map */ _start = _position - _session.tempo_map().framepos_minus_beats (_position, _start_beats); + _length = _session.tempo_map().framepos_plus_beats (_position, _length_beats) - _position; - send_change (Properties::start); + PropertyChange s_and_l; + s_and_l.add (Properties::start); + s_and_l.add (Properties::length); + s_and_l.add (Properties::position); + + send_change (s_and_l); } void |