comparison layer/NoteLayer.cpp @ 1533:37df1530519d

Fix failure to apply new frame when pasting events
author Chris Cannam
date Wed, 09 Oct 2019 11:51:19 +0100
parents 0fa49a6ce64f
children 4f8c72adbf43
comparison
equal deleted inserted replaced
1532:14a162f6870f 1533:37df1530519d
1235 } else { 1235 } else {
1236 frame = i->getFrame(); 1236 frame = i->getFrame();
1237 } 1237 }
1238 } 1238 }
1239 1239
1240 Event p = *i; 1240 Event p = i->withFrame(frame);
1241
1241 Event newPoint = p; 1242 Event newPoint = p;
1242 if (!p.hasValue()) { 1243 if (!p.hasValue()) {
1243 newPoint = newPoint.withValue((model->getValueMinimum() + 1244 newPoint = newPoint.withValue((model->getValueMinimum() +
1244 model->getValueMaximum()) / 2); 1245 model->getValueMaximum()) / 2);
1245 } 1246 }