Fix multiple drawing of tuplet brackets

This commit is contained in:
Matthias Neeracher 2011-09-07 05:21:06 +02:00
parent d58f204907
commit 9eb8b23bb0

View File

@ -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;
}