Skip to content

Commit

Permalink
fix #23648
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Feb 26, 2014
1 parent 82c8dc5 commit 7616e3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,14 +1257,15 @@ void Chord::layoutStem()
hookIdx = -hookIdx;
if (hookIdx) {
_hook->setHookType(hookIdx);
qreal x = _stem->pos().x();
qreal x = _stem->pos().x() + _stem->lineWidth() * .5;;
qreal y = _stem->pos().y();
if (up()) {
y -= _stem->len() - _stem->bbox().y();
y -= _stem->bbox().height();
x -= _stem->width();
}
else {
y += _stem->len();
y += _stem->bbox().height();
x -= _stem->width();
}
_hook->setPos(x, y);
_hook->adjustReadPos();
Expand Down

0 comments on commit 7616e3b

Please sign in to comment.