This shall likely comp. m_eCurrentConversionDirection to HHC::eHangulToHanja

Change-Id: Ib4eba9f6386214d010c880ad15bcacce7665a3af
This commit is contained in:
Stephan Bergmann 2014-01-14 21:09:22 +01:00
parent 54a6b3d7b2
commit d24134b6a2

View File

@ -313,7 +313,7 @@ namespace editeng
{
sal_Int16 nConversionType = -1;
if (m_eConvType == HHC::eConvHangulHanja)
nConversionType = HHC::eHangulToHanja == ( m_eCurrentConversionDirection && !bSwitchDirection ) ? TO_HANJA : TO_HANGUL;
nConversionType = ( HHC::eHangulToHanja == m_eCurrentConversionDirection && !bSwitchDirection ) ? TO_HANJA : TO_HANGUL;
else if (m_eConvType == HHC::eConvSimplifiedTraditional)
nConversionType = LANGUAGE_CHINESE_SIMPLIFIED == m_nTargetLang ? TO_SCHINESE : TO_TCHINESE;
DBG_ASSERT( nConversionType != -1, "unexpected conversion type" );