Skip to content

Commit

Permalink
fix #283360: show dots on rests in tab
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Jul 19, 2019
1 parent cc654b1 commit fc79b50
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libmscore/notedot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,13 @@ void NoteDot::draw(QPainter* p) const
{
if (note() && note()->dotsHidden()) // don't draw dot if note is hidden
return;
Fraction tick = note() ? note()->chord()->tick() : rest()->tick();
if (!staff()->isTabStaff(tick) || staff()->staffType(tick)->stemThrough()) {
Note* n = note();
Fraction tick = n ? n->chord()->tick() : rest()->tick();
// always draw dot for non-tab
// for tab, draw if on a note and stems through staff or on a rest and rests shown
if (!staff()->isTabStaff(tick)
|| (n && staff()->staffType(tick)->stemThrough())
|| (!n && staff()->staffType(tick)->showRests())) {
p->setPen(curColor());
drawSymbol(SymId::augmentationDot, p);
}
Expand Down

0 comments on commit fc79b50

Please sign in to comment.