From 67c9213ce9473e428110e5ba9dacc5f43c7195f8 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Mon, 29 Aug 2011 02:48:40 +0200 Subject: [PATCH] Fix weird highlighting of rests on playback --- Sources/VLSheetViewSelection.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/VLSheetViewSelection.mm b/Sources/VLSheetViewSelection.mm index df8f382..cc5ac11 100644 --- a/Sources/VLSheetViewSelection.mm +++ b/Sources/VLSheetViewSelection.mm @@ -54,7 +54,10 @@ fNoteMeasure = event->fMeasure; fNoteAt = event->fAt; fNoteVisual = event->fVisual & VLNote::kAccidentalsMask; - fNoteVert = VLPitchToGrid(event->fPitch, fNoteVisual, [fView song]->Properties(fNoteMeasure).fKey); + if (event->fPitch == VLNote::kNoPitch) + fNoteVert = kCursorNoPitch; + else + fNoteVert = VLPitchToGrid(event->fPitch, fNoteVisual, [fView song]->Properties(fNoteMeasure).fKey); fStanza = event->fStanza; [fView highlightTextInStanza:fStanza measure:fNoteMeasure at:fNoteAt one:YES]; } else {