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:
parent
07039714ab
commit
a3ac9c24ce
@ -55,10 +55,10 @@ public:
|
|||||||
inline void Prepend(const Standard_Integer theIndex)
|
inline void Prepend(const Standard_Integer theIndex)
|
||||||
{
|
{
|
||||||
if (myIndex[1] >= 0)
|
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] = myIndex[0];
|
||||||
myIndex[1] = theIndex;
|
myIndex[0] = theIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Returns is pair is empty.
|
//! Returns is pair is empty.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user