static private int GetRealWs(FdoCache cache, int hvo, InterlinLineSpec spec, int wsPreferred) { int ws = 0; switch (spec.WritingSystem) { case WritingSystemServices.kwsVernInParagraph: // we want to display the wordform using its own ws. ws = wsPreferred; break; default: ws = spec.GetActualWs(cache, hvo, wsPreferred); break; } return ws; }