diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:31:26 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-11-04 21:31:26 -0500 |
commit | 7da2689f1cbed0cedac5adbf299e1e7ccee3669e (patch) | |
tree | d00764b5807ffbf000af203b09fc1eecacd78567 /libs | |
parent | 38afa297ee2f9f86291d34002de233d9db26f4ec (diff) |
initialize MidiModel::Change::patch_id (correctlty?)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 2 | ||||
-rw-r--r-- | libs/ardour/midi_model.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 3ecfca7d1c..d70b9ccbe0 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -220,6 +220,8 @@ public: uint8_t new_program; int new_bank; }; + + Change() : patch_id (-1) {} }; typedef std::list<Change> ChangeList; diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 5c1f65d96b..716d511798 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -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); } |