Skip to content

Commit 7bfa843

Browse files
authored
Merge pull request #1176 from oxygen-dioxide/pitch-overwrite
Fix pitch misplaced when using overwrite pitch tool
2 parents c58607a + b5ebd4d commit 7bfa843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenUtau/ViewModels/NotesViewModelHitTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public PitchPointHitInfo HitTestPitchPoint(Point point) {
223223
return null;
224224
}
225225
double tick = viewModel.PointToTick(point);
226-
var phrase = viewModel.Part.renderPhrases.FirstOrDefault(p => p.position - p.leading >= tick);
226+
var phrase = viewModel.Part.renderPhrases.FirstOrDefault(p => p.end >= tick);
227227
if (phrase == null) {
228228
phrase = viewModel.Part.renderPhrases.Last();
229229
}

0 commit comments

Comments
 (0)