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:
@@ -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
|
||||
|
Reference in New Issue
Block a user