void FixSpellingStatus(int hvoItem, int val)
{
int defVernWS = m_cache.ServiceLocator.WritingSystems.DefaultVernacularWritingSystem.Handle;
ITsString tss = m_cache.DomainDataByFlid.get_MultiStringAlt(hvoItem,
WfiWordformTags.kflidForm,
defVernWS);
if (tss == null || tss.Length == 0)
return; // probably can't happen?
SpellingHelper.SetSpellingStatus(tss.Text,
defVernWS,
m_cache.WritingSystemFactory,
((int)val == (int)SpellingStatusStates.correct));
}