Fix weird highlighting of rests on playback

This commit is contained in:
Matthias Neeracher 2011-08-29 02:48:40 +02:00
parent f083ae9857
commit 67c9213ce9

View File

@ -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 {