From c9f4791909366b9728c404ff6fb9acfc9ef9b277 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Tue, 22 Nov 2022 19:10:11 -0500 Subject: [PATCH] Fix problem with spaces within tuplets. Closes #3130 --- src/layerelement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layerelement.cpp b/src/layerelement.cpp index 8c36a8f47ea..336f79fc112 100644 --- a/src/layerelement.cpp +++ b/src/layerelement.cpp @@ -674,7 +674,7 @@ double LayerElement::GetAlignmentDuration( const Tuplet *tuplet = vrv_cast(this->GetFirstAncestor(TUPLET, MAX_TUPLET_DEPTH)); if (tuplet) { ListOfConstObjects objects; - ClassIdsComparison ids({ CHORD, NOTE, REST }); + ClassIdsComparison ids({ CHORD, NOTE, REST, SPACE }); tuplet->FindAllDescendantsByComparison(&objects, &ids); if (objects.size() > 1) { num = tuplet->GetNum();