Use MiterJoin for drawing tuplet brackets

This commit is contained in:
Michele Spagnolo 2023-11-21 10:29:43 +01:00
parent ba238d13e3
commit 5590bbfb52

View file

@ -3042,7 +3042,10 @@ void TDraw::draw(const Tuplet* item, Painter* painter)
painter->translate(-pos);
}
if (item->hasBracket()) {
painter->setPen(Pen(color, item->bracketWidth().val() * item->mag()));
Pen pen(color, item->bracketWidth().val() * item->mag());
pen.setJoinStyle(PenJoinStyle::MiterJoin);
pen.setCapStyle(PenCapStyle::FlatCap);
painter->setPen(pen);
if (!item->number()) {
painter->drawPolyline(item->bracketL, 4);
} else {