SIL.FieldWorks.IText.InterlinVc.GetRealWs C# (CSharp) Method

GetRealWs() static private method

static private GetRealWs ( FdoCache cache, int hvo, InterlinLineSpec spec, int wsPreferred ) : int
cache FdoCache
hvo int
spec InterlinLineSpec
wsPreferred int
return int
		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;
		}