Skip to content

Commit

Permalink
Apply tuplet ratio including with single elements. Fixes #3639
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jun 18, 2024
1 parent c508e2e commit 24196fb
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

1 comment on commit 24196fb

@craigsapp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to merge into develop 😜

Please sign in to comment.