From 46cb418c3c1ed03fa6bc9b15cac21eef1ab39a1e Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Thu, 12 Feb 2026 09:10:11 -0800 Subject: [PATCH] Fix LT-22415: Crash clicking blue triangle button for custom field --- Src/LexText/Interlinear/ConfigureInterlinDialog.cs | 1 + Src/LexText/Interlinear/InterlinLineChoices.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Src/LexText/Interlinear/ConfigureInterlinDialog.cs b/Src/LexText/Interlinear/ConfigureInterlinDialog.cs index ea1e92c36c..9867381c36 100644 --- a/Src/LexText/Interlinear/ConfigureInterlinDialog.cs +++ b/Src/LexText/Interlinear/ConfigureInterlinDialog.cs @@ -806,6 +806,7 @@ private void OkButton_Click(object sender, EventArgs e) } OrderAllSpecs(m_choices, orderedFlids, newLineSpecsUnordered); + Choices.UpdateLineOptions(); } internal static void OrderAllSpecs(InterlinLineChoices choices, List orderedFlids, List newLineSpecsUnordered) diff --git a/Src/LexText/Interlinear/InterlinLineChoices.cs b/Src/LexText/Interlinear/InterlinLineChoices.cs index 5c295e9d4c..4620ec62a5 100644 --- a/Src/LexText/Interlinear/InterlinLineChoices.cs +++ b/Src/LexText/Interlinear/InterlinLineChoices.cs @@ -534,6 +534,11 @@ public bool Remove(int flid, int ws) public const int kflidLitTrans = InterlinVc.ktagSegmentLit; public const int kflidNote = InterlinVc.ktagSegmentNote; + internal void UpdateLineOptions() + { + UpdateFieldNamesFromLines(Mode); + } + private LineOption[] UpdateFieldNamesFromLines(InterlinMode mode) { LineOption[] options = LineOptions(mode);