Skip to content

Commit

Permalink
fix arpeggio default height
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Apr 26, 2013
1 parent 76e6c32 commit a0dc9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ void Chord::layout()
_arpeggio->layout();
lll += _arpeggio->width() + _spatium * .5;
qreal y = upNote()->pos().y() - headHeight * .5;
qreal h = downNote()->pos().y() - y;
qreal h = downNote()->pos().y() + downNote()->headHeight() - y;
_arpeggio->setHeight(h);
_arpeggio->setPos(-lll, y);

Expand Down Expand Up @@ -1630,7 +1630,7 @@ void Chord::layoutArpeggio2()

if (bchord && bchord->type() == CHORD)
dnote = static_cast<Chord*>(bchord)->downNote();
qreal h = dnote->pagePos().y() - y;
qreal h = dnote->pagePos().y() + downNote()->headHeight() - y;
_arpeggio->setHeight(h);

QList<Note*> notes;
Expand Down

0 comments on commit a0dc9ae

Please sign in to comment.