Skip to content

Commit

Permalink
Merge pull request #3708 from rism-digital/develop-fix-tuplets
Browse files Browse the repository at this point in the history
Apply tuplet ratio including with single elements. Fixes #3639
  • Loading branch information
lpugin committed Jun 22, 2024
2 parents c508e2e + 24196fb commit 2adbd27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layerelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ double LayerElement::GetAlignmentDuration(
ListOfConstObjects objects;
ClassIdsComparison ids({ CHORD, NOTE, REST, SPACE });
tuplet->FindAllDescendantsByComparison(&objects, &ids);
if (objects.size() > 1) {
if (objects.size() > 0) {
num = tuplet->GetNum();
numbase = tuplet->GetNumbase();
// 0 is not valid in MEI anyway - just correct it silently
Expand Down

0 comments on commit 2adbd27

Please sign in to comment.