#i105571# method <SwFntObj::GetCrsrOfst(..)>

- skip character cells also for CJK
This commit is contained in:
Oliver Düsterhoff 2009-10-14 12:40:46 +00:00
parent 0407085447
commit e7a5d9d3e1

View file

@ -2424,8 +2424,12 @@ xub_StrLen SwFntObj::GetCrsrOfst( SwDrawTextInfo &rInf )
const xub_StrLen nEnd = rInf.GetIdx() + rInf.GetLen();
// skip character cells for complex scripts
if ( rInf.GetFont() && SW_CTL == rInf.GetFont()->GetActual() &&
// --> OD 2009-10-14 #i105571# - skip also character cells for CJK
if ( rInf.GetFont() &&
( SW_CTL == rInf.GetFont()->GetActual() ||
SW_CJK == rInf.GetFont()->GetActual() ) &&
pBreakIt->GetBreakIter().is() )
// <--
{
aLang = rInf.GetFont()->GetLanguage();
bSkipCell = sal_True;