Fix MIDI recording display when zoom/etc changes.

This commit is contained in:
David Robillard 2014-12-29 18:56:39 -05:00
parent a42b9ff86e
commit 3d1f955a0c

View File

@ -1113,8 +1113,12 @@ MidiRegionView::get_events (Events& e, Evoral::Sequence<Evoral::MusicalTime>::No
void
MidiRegionView::redisplay_model()
{
// Don't redisplay the model if we're currently recording and displaying that
if (_active_notes) {
/* Recording, so just update canvas events to reflect changes
in zoom or whatever without touching model. */
for (Events::iterator i = _events.begin(); i != _events.end(); ++i) {
update_note(*i);
}
return;
}