Skip to content

Commit

Permalink
Merge pull request #15129 from asattely/rewrite-measures-tuplet-annot…
Browse files Browse the repository at this point in the history
…ations

Fix #15090: add annotations within tuplet consistent with non-tuplet segments
  • Loading branch information
RomanPudashkin committed Mar 20, 2023
2 parents 937baf4 + 72c9c6b commit 77ab410
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engraving/libmscore/range.cpp
Expand Up @@ -92,6 +92,14 @@ void TrackList::appendTuplet(Tuplet* srcTuplet, Tuplet* dstTuplet)
Tuplet* st = toTuplet(de);
Tuplet* dt = toTuplet(e);
appendTuplet(st, dt);
} else if (de->explicitParent() && de->explicitParent()->isSegment()) {
Segment* seg = toSegment(de->explicitParent());
for (EngravingItem* ee : seg->annotations()) {
bool addSysObject = ee->systemFlag() && !ee->isLinked() && ee->track() == 0 && e->track() == 0;
if (addSysObject || (!ee->systemFlag() && ee->track() == e->track())) {
_range->annotations.push_back({ e->tick(), ee->clone() });
}
}
}
}
}
Expand Down

0 comments on commit 77ab410

Please sign in to comment.