Bug 393923. Fix text-offset calculation for first-letter. r=smontagu,a=dbaron

This commit is contained in:
roc+@cs.cmu.edu 2007-09-05 16:03:31 -07:00
parent 60b878b0b3
commit fa88299620

View File

@ -4959,7 +4959,7 @@ FindFirstLetterRange(const nsTextFragment* aFrag,
gfxSkipCharsIterator iter(aIter);
PRInt32 nextClusterStart;
for (nextClusterStart = i + 1; nextClusterStart < length; ++nextClusterStart) {
iter.SetOriginalOffset(nextClusterStart);
iter.SetOriginalOffset(aOffset + nextClusterStart);
if (iter.IsOriginalCharSkipped() ||
aTextRun->IsClusterStart(iter.GetSkippedOffset()))
break;