From 9eb8b23bb031cb50e0c5ce4f872e3c2ad39bbb77 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Wed, 7 Sep 2011 05:21:06 +0200 Subject: [PATCH] Fix multiple drawing of tuplet brackets --- Sources/VLSheetViewNotes.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/VLSheetViewNotes.mm b/Sources/VLSheetViewNotes.mm index a74ffdf..7177856 100644 --- a/Sources/VLSheetViewNotes.mm +++ b/Sources/VLSheetViewNotes.mm @@ -384,6 +384,7 @@ tupletStartX = pos.x-kNoteW*0.5f; tuplet = newTuplet; tupletDur = 0; + inTuplet = 0; } ++inTuplet; tupletDur += note->fDuration / VLNote::TupletDenom(tuplet); @@ -396,7 +397,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; }