Skip to content

Commit

Permalink
fix #52926: Tremolo position
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Apr 7, 2015
1 parent 7776d96 commit ea199f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/tremolo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ void Tremolo::layout()
int idx = _chord1->hook() ? 1 : (_chord1->beam() ? 2 : 0);
y = (line + t[idx][up][_lines-1][line & 1]) * spatium() * .5;
setPos(x, y);
adjustReadPos();
return;
}
y += (h - bbox().height()) * .5;
Expand Down Expand Up @@ -252,6 +253,7 @@ void Tremolo::layout()
// qreal x1 = _chord1->stemPos(_chord1->up(), true).x();
x = x1 - _chord1->pagePos().x() + (x2 - x1 + _chord1->upNote()->headWidth()) * .5;
setPos(x, y);
adjustReadPos();
}

//---------------------------------------------------------
Expand Down

0 comments on commit ea199f9

Please sign in to comment.