From 02b587f2cd69a9ecb7f3687df884b11620f80bb2 Mon Sep 17 00:00:00 2001 From: John Maxwell Date: Fri, 6 Mar 2026 10:55:46 -0800 Subject: [PATCH] Fix LT-21127: Crash opening project in texts --- src/SIL.LCModel/DomainServices/ITextUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SIL.LCModel/DomainServices/ITextUtils.cs b/src/SIL.LCModel/DomainServices/ITextUtils.cs index f0591a49..991be78d 100644 --- a/src/SIL.LCModel/DomainServices/ITextUtils.cs +++ b/src/SIL.LCModel/DomainServices/ITextUtils.cs @@ -1579,7 +1579,8 @@ public bool IsWordforming(int ich) isLabel = true; // The character is wordforming if it is not a label And it is either word forming or // a number (numbers added for LT-10746) - return !isLabel && (m_tss.IsCharWordForming(ich, m_wsManager) || Character.IsNumeric(m_tss.CharAt(ich))); + return !isLabel && (m_tss.IsCharWordForming(ich, m_wsManager) || + (!char.IsLowSurrogate(m_tss.Text[ich]) && Character.IsNumeric(m_tss.CharAt(ich)))); } ///