From 44e4acc8cfce990d943fe0094d10e51e5e2516b0 Mon Sep 17 00:00:00 2001 From: Maiko Date: Sun, 12 May 2024 17:40:35 +0900 Subject: [PATCH] Fix MargeExpression --- OpenUtau.Core/Ustx/UProject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenUtau.Core/Ustx/UProject.cs b/OpenUtau.Core/Ustx/UProject.cs index 8597b8e19..b1b62a212 100644 --- a/OpenUtau.Core/Ustx/UProject.cs +++ b/OpenUtau.Core/Ustx/UProject.cs @@ -97,7 +97,7 @@ public void MargeExpression(string oldAbbr, string newAbbr) { void ConvertNoteExp(UNote note, UTrack track) { if (note.phonemeExpressions.Any(e => e.abbr == oldAbbr)) { - note.phonemeExpressions.ForEach(oldExp => { + note.phonemeExpressions.Where(e => e.abbr == oldAbbr).ForEach(oldExp => { if (!note.phonemeExpressions.Any(newExp => newExp.abbr == newAbbr && newExp.index == oldExp.index)) { oldExp.abbr = newAbbr; if (track.TryGetExpDescriptor(this, newAbbr, out var descriptor)) {