1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027941: Foundation Classes - NCollection_Vector::Iterator::offsetV() does not match NCollection_Vector::end()

This commit is contained in:
kgv
2016-10-07 18:49:34 +03:00
committed by apn
parent b88b0cf7fc
commit 0f5ea4b5f8
2 changed files with 31 additions and 0 deletions

View File

@@ -117,6 +117,13 @@ protected:
const Standard_Integer anIndex = myCurIndex + myICurBlock * myVector->myIncrement + theOffset;
myICurBlock = anIndex / myVector->myIncrement;
myCurIndex = anIndex % myVector->myIncrement;
if (myICurBlock > myIEndBlock)
{
// make sure that iterator produced by Offset()
// is equal to the end() iterator
--myICurBlock;
myCurIndex += myVector->myIncrement;
}
}
Standard_Integer differV (const Iterator& theOther) const