Skip to content

Commit

Permalink
Merge pull request #3628 from rettinghaus/fix/xmltied [skip-ci]
Browse files Browse the repository at this point in the history
fix ties from Dorico
  • Loading branch information
lpugin authored Mar 23, 2024
2 parents c0e4854 + 0f834f1 commit 24c3b85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,7 @@ void MusicXmlInput::ReadMusicXmlNote(
}

// ties
ReadMusicXmlTies(notations.node(), layer, note, measureNum);
ReadMusicXmlTies(node, layer, note, measureNum);

// articulation
std::vector<data_ARTICULATION> artics;
Expand Down Expand Up @@ -3834,7 +3834,9 @@ void MusicXmlInput::ReadMusicXmlBeamStart(const pugi::xml_node &node, const pugi
void MusicXmlInput::ReadMusicXmlTies(
const pugi::xml_node &node, Layer *layer, Note *note, const std::string &measureNum)
{
for (pugi::xml_node xmlTie : node.children("tied")) {
pugi::xpath_node_set xmlTies = node.select_nodes("notations/tied");
for (pugi::xpath_node_set::const_iterator it = xmlTies.begin(); it != xmlTies.end(); ++it) {
pugi::xml_node xmlTie = (*it).node();
std::string tieType = xmlTie.attribute("type").as_string();

if (tieType.empty()) {
Expand Down

0 comments on commit 24c3b85

Please sign in to comment.