From d58f204907bbb5997f7b9e170907806bbb28e272 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Tue, 6 Sep 2011 03:26:08 +0200 Subject: [PATCH] Fix cursor display --- Sources/VLSheetView.mm | 2 +- Sources/VLSheetViewNotes.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index 0805a40..3f73557 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -885,8 +885,8 @@ const float kSemiFloor = -1.0f*kLineH; fClickMode = ' '; else fClickMode = 'k'; - break; [self setNeedsDisplay:YES]; + break; } } diff --git a/Sources/VLSheetViewNotes.mm b/Sources/VLSheetViewNotes.mm index ebd7ca7..a74ffdf 100644 --- a/Sources/VLSheetViewNotes.mm +++ b/Sources/VLSheetViewNotes.mm @@ -77,7 +77,7 @@ cursorX = [self noteXInMeasure:measure at:at]; if (visual == kCursorExtend) { - cursorY = [self noteYInGrid:vertPos]; + cursorY = [self noteYInMeasure:measure withGrid:vertPos]; cursorElt = kMusicExtendCursor; } else { switch (mode) { @@ -92,7 +92,7 @@ cursorElt = kMusicRestCursor; break; case 'k': - cursorY = [self noteYInGrid:vertPos]; + cursorY = [self noteYInMeasure:measure withGrid:vertPos] - kNoteY; cursorElt = kMusicKillCursor; break; }