From f96a142be9c27e047f06f95c9ae76e7ddfc7fc0e Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Mon, 11 Nov 2024 14:33:33 +0100 Subject: [PATCH] Prevent accids with the same aligner to crash --- src/adjustaccidxfunctor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adjustaccidxfunctor.cpp b/src/adjustaccidxfunctor.cpp index f4baadfb231..d02ca426361 100644 --- a/src/adjustaccidxfunctor.cpp +++ b/src/adjustaccidxfunctor.cpp @@ -133,7 +133,7 @@ std::vector AdjustAccidXFunctor::GetAccidentalsForAdjustment(AlignmentR for (Object *child : alignmentReference->GetChildren()) { if (child->Is(ACCID)) { Accid *accid = vrv_cast(child); - if (accid->HasAccid()) accidentals.push_back(accid); + if (accid->HasAccid() && accid->GetFirstAncestor(NOTE)) accidentals.push_back(accid); } } return accidentals;