Skip to content

Commit

Permalink
Fix MargeExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiko committed May 12, 2024
1 parent b969d52 commit 44e4acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenUtau.Core/Ustx/UProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 44e4acc

Please sign in to comment.