Merge pull request #17697 from mikekirin/17696-mmrest-fix
MMRest recognition now skips annotations in the hidden staves
This commit is contained in:
commit
12bc39b721
1 changed files with 3 additions and 0 deletions
|
@ -471,6 +471,9 @@ static bool validMMRestMeasure(const LayoutContext& ctx, Measure* m)
|
|||
int n = 0;
|
||||
for (Segment* s = m->first(); s; s = s->next()) {
|
||||
for (EngravingItem* e : s->annotations()) {
|
||||
if (!e->staff()->show()) {
|
||||
continue;
|
||||
}
|
||||
if (!(e->isRehearsalMark() || e->isTempoText() || e->isHarmony() || e->isStaffText() || e->isSystemText() || e->isTripletFeel()
|
||||
|| e->isPlayTechAnnotation() || e->isInstrumentChange())) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue