tweak detection of correct MIDI patch change when removing the canvas item in a MidiView
This commit is contained in:
@@ -2196,7 +2196,7 @@ MidiView::remove_canvas_patch_change (PatchChange* pc)
|
||||
{
|
||||
/* remove the canvas item */
|
||||
for (PatchChanges::iterator x = _patch_changes.begin(); x != _patch_changes.end(); ++x) {
|
||||
if (x->second->patch() == pc->patch()) {
|
||||
if (x->first == pc->patch()) {
|
||||
_patch_changes.erase (x);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user