diff --git a/src/muse/operations.cpp b/src/muse/operations.cpp index e34488138..37cb013cd 100644 --- a/src/muse/operations.cpp +++ b/src/muse/operations.cpp @@ -1279,12 +1279,7 @@ SongChangedStruct_t PendingOperationItem::executeRTStage() case DeleteMidiCtrlVal: DEBUG_OPERATIONS(stderr, "PendingOperationItem::executeRTStage DeleteMidiCtrlVal: mcvl:%p tick:%u part:%p val:%d\n", _mcvl, _imcv->first, _imcv->second.part, _imcv->second.val); - for (auto it = _mcvl->begin(); it!=_mcvl->end(); it++){ - if (it == _imcv) { - _mcvl->erase(_imcv); - break; - } - } + _mcvl->delMCtlVal(_imcv->first, _imcv->second.part, _imcv->second.val); // No song changed flags are required to be set here. break; case ModifyMidiCtrlVal: