Index: thints.cxx =================================================================== RCS file: /cvs/sw/sw/source/core/txtnode/thints.cxx,v retrieving revision 1.63 diff -u -r1.63 thints.cxx --- thints.cxx 20 May 2008 14:42:53 -0000 1.63 +++ thints.cxx 8 Jul 2008 06:58:41 -0000 @@ -2330,13 +2330,11 @@ { USHORT nWhichId = RES_CHRATR_LANGUAGE; USHORT nRet = LANGUAGE_DONTKNOW; - if( pSwpHints ) - { - if ( ! nScript ) + if ( ! nScript ) nScript = pBreakIt->GetRealScriptOfText( aText, nBegin ); - nWhichId = GetWhichOfScript( nWhichId, nScript ); - + if( pSwpHints ) + { xub_StrLen nEnd = nBegin + nLen; for( USHORT i = 0, nSize = pSwpHints->Count(); i < nSize; ++i ) { @@ -2377,10 +2375,7 @@ if( LANGUAGE_DONTKNOW == nRet ) { if( !pSwpHints ) - nWhichId = GetWhichOfScript( RES_CHRATR_LANGUAGE, - pBreakIt->GetRealScriptOfText( aText, nBegin )); - - nRet = ((SvxLanguageItem&)GetSwAttrSet().Get( nWhichId )).GetLanguage(); + nRet = ((SvxLanguageItem&)GetSwAttrSet().Get( nWhichId )).GetLanguage(); if( LANGUAGE_DONTKNOW == nRet ) nRet = static_cast(GetAppLanguage()); }