Skip to content

Commit

Permalink
Fix order in tupletSpan conversion
Browse files Browse the repository at this point in the history
Fixes #3500
  • Loading branch information
lpugin committed Oct 1, 2023
1 parent d827621 commit 13a49ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iomei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8046,7 +8046,7 @@ bool MEIInput::ReadTupletSpanAsTuplet(Measure *measure, pugi::xml_node tupletSpa
// LogDebug("%d %d %s!", startIdx, endIdx, start->GetID().c_str());
for (int i = endIdx; i >= startIdx; --i) {
LayerElement *element = dynamic_cast<LayerElement *>(parentLayer->DetachChild(i));
if (element) tuplet->AddChild(element);
if (element) tuplet->InsertChild(element, 0);
}
parentLayer->InsertChild(tuplet, startIdx);

Expand Down

0 comments on commit 13a49ae

Please sign in to comment.