1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +03:00

0025953: BRepMesh_PairOfIndex::Prepend - variable assigned twice

Corrected index assignment.
Minor change in exception message.
This commit is contained in:
Pawel 2015-03-26 15:26:16 +03:00 committed by apn
parent 07039714ab
commit a3ac9c24ce

View File

@ -55,10 +55,10 @@ public:
inline void Prepend(const Standard_Integer theIndex)
{
if (myIndex[1] >= 0)
Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::Append, more than two index to store");
Standard_OutOfRange::Raise ("BRepMesh_PairOfIndex::Prepend, more than two index to store");
myIndex[1] = myIndex[0];
myIndex[1] = theIndex;
myIndex[0] = theIndex;
}
//! Returns is pair is empty.