Skip to content

Commit

Permalink
Fix musescore#17749: Dot position UI does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantAntony committed May 28, 2023
1 parent 889492f commit b59d891
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engraving/libmscore/note.cpp
Expand Up @@ -2091,6 +2091,10 @@ void Note::setDotY(DirectionV pos)
bool finished = false;
for (Note* note : topDownNotes) {
int dotMove = -1;
if (pos == DirectionV::DOWN) {
dotMove = 1;
}

if (mu::contains(anchoredDots, note->line() + dotMove)) {
dotMove = 1; // if the desired space is taken, adjust downwards
}
Expand All @@ -2116,6 +2120,10 @@ void Note::setDotY(DirectionV pos)
}
}
} else {
if (pos == DirectionV::UP) {
y = -1;
}

// on a space; usually this means the dot is on this same line, but there is an exception
// for a unison within the same chord.
for (Note* note : chord()->notes()) {
Expand Down

0 comments on commit b59d891

Please sign in to comment.