mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Fix multiple drawing of tuplet brackets
This commit is contained in:
parent
d58f204907
commit
9eb8b23bb0
|
@ -384,6 +384,7 @@
|
||||||
tupletStartX = pos.x-kNoteW*0.5f;
|
tupletStartX = pos.x-kNoteW*0.5f;
|
||||||
tuplet = newTuplet;
|
tuplet = newTuplet;
|
||||||
tupletDur = 0;
|
tupletDur = 0;
|
||||||
|
inTuplet = 0;
|
||||||
}
|
}
|
||||||
++inTuplet;
|
++inTuplet;
|
||||||
tupletDur += note->fDuration / VLNote::TupletDenom(tuplet);
|
tupletDur += note->fDuration / VLNote::TupletDenom(tuplet);
|
||||||
|
@ -396,7 +397,7 @@
|
||||||
[self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY];
|
[self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY];
|
||||||
inTuplet = 0;
|
inTuplet = 0;
|
||||||
}
|
}
|
||||||
} else if (++inTuplet) {
|
} else if (inTuplet) {
|
||||||
[self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY];
|
[self drawTuplet:tuplet bracketFrom:tupletStartX to:tupletEndX atY:tupletY];
|
||||||
inTuplet = 0;
|
inTuplet = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user