diff options
author | Jonathan Kew <jkew@mozilla.com> | 2019-12-06 13:42:37 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-12-06 13:42:37 +0100 |
commit | ede803a81fb595e32cfe856077e1aec4cd163ce3 (patch) | |
tree | 0c1d12df3999b10ddb594b335153a34724f6ed99 | |
parent | 55a869d918c18dc104c50bf50f8ad7366aab8f91 (diff) | |
download | uxp-ede803a81fb595e32cfe856077e1aec4cd163ce3.tar.gz |
Check if we're already at the end of the frame's content.
-rw-r--r-- | layout/generic/nsTextFrame.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 0641c7439a..59ef020ce2 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -7525,7 +7525,8 @@ nsTextFrame::GetCharacterRectsInRange(int32_t aInOffset, gfxSkipCharsIterator nextIter(iter); nextIter.AdvanceOriginal(1); if (!nextIter.IsOriginalCharSkipped() && - !mTextRun->IsClusterStart(nextIter.GetSkippedOffset())) { + !mTextRun->IsClusterStart(nextIter.GetSkippedOffset()) && + nextIter.GetOriginalOffset() < kContentEnd) { FindClusterEnd(mTextRun, kContentEnd, &nextIter); } |