Skip to content

Commit

Permalink
Prevent accids with the same aligner to crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Nov 11, 2024
1 parent 27555e7 commit f96a142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adjustaccidxfunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ std::vector<Accid *> AdjustAccidXFunctor::GetAccidentalsForAdjustment(AlignmentR
for (Object *child : alignmentReference->GetChildren()) {
if (child->Is(ACCID)) {
Accid *accid = vrv_cast<Accid *>(child);
if (accid->HasAccid()) accidentals.push_back(accid);
if (accid->HasAccid() && accid->GetFirstAncestor(NOTE)) accidentals.push_back(accid);
}
}
return accidentals;
Expand Down

0 comments on commit f96a142

Please sign in to comment.