mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 633453 - correctly check the last array element before deciding whether to append or insert. r=roc a=blocking
This commit is contained in:
parent
1ec2ec1141
commit
91ffef44ac
@ -2128,7 +2128,7 @@ private:
|
||||
// test for that before falling back to the InsertElementSorted
|
||||
// method.
|
||||
if (mOffsetToIndex.Length() == 0 ||
|
||||
aOffset > mOffsetToIndex[mLastUsed].mOffset) {
|
||||
aOffset > mOffsetToIndex[mOffsetToIndex.Length() - 1].mOffset) {
|
||||
if (!mOffsetToIndex.AppendElement(DGRec(aOffset, detailIndex))) {
|
||||
return nsnull;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user