We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3c614b commit dbdacd2Copy full SHA for dbdacd2
1 file changed
MaiChartManager/Models/MusicXml.cs
@@ -457,7 +457,13 @@ public bool LongMusic
457
set
458
{
459
Modified = true;
460
- RootNode.SelectSingleNode("longMusic").InnerText = value ? "1" : "0";
+ var node = RootNode.SelectSingleNode("longMusic");
461
+ if (node == null)
462
+ {
463
+ node = RootNode.OwnerDocument.CreateElement("longMusic");
464
+ RootNode.AppendChild(node);
465
+ }
466
+ node.InnerText = value ? "1" : "0";
467
}
468
469
0 commit comments