13
0

initialize MidiModel::Change::patch_id (correctlty?)

This commit is contained in:
Paul Davis 2013-11-04 21:31:26 -05:00
parent 38afa297ee
commit 7da2689f1c
2 changed files with 4 additions and 0 deletions

View File

@ -220,6 +220,8 @@ public:
uint8_t new_program;
int new_bank;
};
Change() : patch_id (-1) {}
};
typedef std::list<Change> ChangeList;

View File

@ -1018,6 +1018,7 @@ MidiModel::PatchChangeDiffCommand::change_channel (PatchChangePtr patch, uint8_t
c.patch = patch;
c.old_channel = patch->channel ();
c.new_channel = channel;
c.patch_id = patch->id();
_changes.push_back (c);
}
@ -1030,6 +1031,7 @@ MidiModel::PatchChangeDiffCommand::change_program (PatchChangePtr patch, uint8_t
c.patch = patch;
c.old_program = patch->program ();
c.new_program = program;
c.patch_id = patch->id();
_changes.push_back (c);
}