Skip to content

Commit

Permalink
Fix LT-21886: Deleting phonemes from an affix rule crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmaxwell3 committed Sep 20, 2024
1 parent cbf79d5 commit b34dd94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/LexText/Morphology/AffixRuleFormulaControl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2015 SIL International
// Copyright (c) 2015 SIL International
// This software is licensed under the LGPL, version 2.1 or later
// (http://www.gnu.org/licenses/lgpl-2.1.html)

Expand Down Expand Up @@ -599,6 +599,8 @@ protected override int RemoveItems(SelectionHelper sel, bool forward, out int ce
int prevCellId = GetPrevCell(seqCtxt.Hvo);
cellIndex = GetCellCount(prevCellId) - 1;
Rule.InputOS.Remove(seqCtxt);
// Unschedule the removal of the column.
m_removeCol = null;
return prevCellId;
}
bool reconstruct = RemoveContextsFrom(forward, sel, seqCtxt, false, out cellIndex);
Expand Down

0 comments on commit b34dd94

Please sign in to comment.