Skip to content

Commit b138092

Browse files
authored
Fix LT-21127: Crash opening project in texts (#369)
1 parent 4e27ee6 commit b138092

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SIL.LCModel/DomainServices/ITextUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,8 @@ public bool IsWordforming(int ich)
15791579
isLabel = true;
15801580
// The character is wordforming if it is not a label And it is either word forming or
15811581
// a number (numbers added for LT-10746)
1582-
return !isLabel && (m_tss.IsCharWordForming(ich, m_wsManager) || Character.IsNumeric(m_tss.CharAt(ich)));
1582+
return !isLabel && (m_tss.IsCharWordForming(ich, m_wsManager) ||
1583+
(!char.IsLowSurrogate(m_tss.Text[ich]) && Character.IsNumeric(m_tss.CharAt(ich))));
15831584
}
15841585

15851586
/// <summary>

0 commit comments

Comments
 (0)