Skip to content

Commit

Permalink
fix #289614: bad layout of tie with clef change
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed May 25, 2019
1 parent b00b5b4 commit c5cacda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/tie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ void Tie::slurPos(SlurPos* sp)
sp->p2 = ec->pos() + ec->segment()->pos() + ec->measure()->pos();
sp->system2 = ec->measure()->system();

// force tie to be horizontal except for cross-staff or if there is a difference of enharmonic spelling
bool horizontal = startNote()->tpc() == endNote()->tpc() && sc->vStaffIdx() == ec->vStaffIdx();
// force tie to be horizontal except for cross-staff or if there is a difference of line (tpc, clef, tpc)
bool horizontal = startNote()->line() == endNote()->line() && sc->vStaffIdx() == ec->vStaffIdx();

hw = endNote()->tabHeadWidth(stt);
if ((ec->notes().size() > 1) || (ec->stem() && !ec->up() && !_up)) {
Expand Down

0 comments on commit c5cacda

Please sign in to comment.