Skip to content

Commit

Permalink
Fix stem length of notes with mirrored notehead
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup authored and vpereverzev committed Dec 10, 2020
1 parent d333325 commit 5c92652
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmscore/stem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ void Stem::layout()
else { // non-TAB
// move stem start to note attach point
Note* n = up() ? chord()->downNote() : chord()->upNote();
y1 += (up() ? n->stemUpSE().y() : n->stemDownNW().y());
if ((up() && !n->mirror()) || (!up() && n->mirror()))
y1 += n->stemUpSE().y();
else
y1 += n->stemDownNW().y();
rypos() = n->rypos();
}
}
Expand Down

0 comments on commit 5c92652

Please sign in to comment.