Skip to content

Commit

Permalink
Hooks trigger an additional computation of up
Browse files Browse the repository at this point in the history
  • Loading branch information
asattely committed Jan 8, 2023
1 parent 52a20bf commit 517c793
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engraving/libmscore/chord.cpp
Expand Up @@ -1075,7 +1075,7 @@ void Chord::computeUp()
_up = noteY > desiredY;
}
}
_beam->layout1(); // compute beam direction (a full layout is not necessary at this point)
_beam->layout();
if (!cross && !_beam->userModified()) {
_up = _beam->up();
}
Expand Down Expand Up @@ -1808,6 +1808,7 @@ void Chord::layoutHook()
{
if (!_hook) {
createHook();
computeUp();
}
_hook->setHookType(up() ? durationType().hooks() : -durationType().hooks());
_hook->layout();
Expand Down

0 comments on commit 517c793

Please sign in to comment.