Not Part Of The Build (new textframe). IsInBounds uses incorrect logic and produces spurious warnings.

This commit is contained in:
roc+@cs.cmu.edu 2007-05-22 21:08:38 -07:00
Родитель f303dbe9c8
Коммит 6b140b8909
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1825,8 +1825,8 @@ static PRBool IsInBounds(const gfxSkipCharsIterator& aStart, PRInt32 aContentLen
if (aStart.GetSkippedOffset() > aOffset) if (aStart.GetSkippedOffset() > aOffset)
return PR_FALSE; return PR_FALSE;
gfxSkipCharsIterator iter(aStart); gfxSkipCharsIterator iter(aStart);
iter.AdvanceSkipped(aLength); iter.AdvanceOriginal(aContentLength);
return iter.GetOriginalOffset() <= aStart.GetOriginalOffset() + aContentLength; return iter.GetSkippedOffset() >= aOffset + aLength;
} }
#endif #endif