Skip to content

Commit

Permalink
Fix #322347 - ensure hidden rests in V2-4 don't move back to default …
Browse files Browse the repository at this point in the history
…position

Backport of musescore#8424
  • Loading branch information
wizofaus authored and Jojo-Schmitz committed Sep 10, 2021
1 parent 535f9e2 commit 793d6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/rest.cpp
Expand Up @@ -520,7 +520,7 @@ int Rest::getDotline(TDuration::DurationType durationType)
int Rest::computeLineOffset(int lines)
{
Segment* s = segment();
bool offsetVoices = s && measure() && measure()->hasVoices(staffIdx(), tick(), actualTicks());
bool offsetVoices = s && measure() && (voice() > 0 || measure()->hasVoices(staffIdx(), tick(), actualTicks()));
if (offsetVoices && voice() == 0) {
// do not offset voice 1 rest if there exists a matching invisible rest in voice 2;
Element* e = s->element(track() + 1);
Expand Down

0 comments on commit 793d6aa

Please sign in to comment.