13
0

minor MidiRegionView::redisplay_model() cleanup

This commit is contained in:
nick_m 2016-12-30 00:46:43 +11:00
parent 68ca289b92
commit e58fda2fa2

View File

@ -1193,8 +1193,8 @@ MidiRegionView::redisplay_model()
if (!empty_when_starting) {
MidiModel::Notes::iterator f;
for (Events::iterator i = _events.begin(); i != _events.end(); ) {
boost::shared_ptr<NoteType> note = (*i)->note();
NoteBase* cne = (*i);
boost::shared_ptr<NoteType> note = cne->note();
/* if event item's note exists in the model, we can just update it.
* don't mark it as missing.