diff --git a/Sources/VLSheetView.mm b/Sources/VLSheetView.mm index 3f73557..465d492 100644 --- a/Sources/VLSheetView.mm +++ b/Sources/VLSheetView.mm @@ -901,7 +901,7 @@ const float kSemiFloor = -1.0f*kLineH; NSResponder * hasResponder = [win firstResponder]; if ([self editTarget]) if (hasResponder != [win fieldEditor:NO forObject:nil] - || [hasResponder delegate] != fFieldEditor + || [(id)hasResponder delegate] != fFieldEditor ) [win makeFirstResponder:fFieldEditor]; } diff --git a/Sources/VLSheetViewNotes.mm b/Sources/VLSheetViewNotes.mm index a8f6c4b..bb38df7 100644 --- a/Sources/VLSheetViewNotes.mm +++ b/Sources/VLSheetViewNotes.mm @@ -385,6 +385,7 @@ tupletStartX = pos.x-kNoteW*0.5f; tuplet = newTuplet; tupletDur = 0; + inTuplet = 0; } ++inTuplet; tupletDur += note->fDuration / VLNote::TupletDenom(tuplet); @@ -397,7 +398,7 @@ [self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY]; inTuplet = 0; } - } else if (++inTuplet) { + } else if (inTuplet) { [self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY]; inTuplet = 0; }