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 Jul 27, 2021
1 parent 9712ca3 commit b0f0b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/rest.cpp
Original file line number Diff line number Diff line change
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 b0f0b28

Please sign in to comment.