From: Pawel Date: Thu, 26 Mar 2015 12:26:16 +0000 (+0300) Subject: 0025953: BRepMesh_PairOfIndex::Prepend - variable assigned twice X-Git-Tag: V6_9_0_beta~29 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a3ac9c24cebe3368c2ab5557bf5a91dfb3131600;p=occt-copy.git 0025953: BRepMesh_PairOfIndex::Prepend - variable assigned twice Corrected index assignment. Minor change in exception message. --- diff --git a/src/BRepMesh/BRepMesh_PairOfIndex.hxx b/src/BRepMesh/BRepMesh_PairOfIndex.hxx index ddd92ef487..a70b23b94f 100644 --- a/src/BRepMesh/BRepMesh_PairOfIndex.hxx +++ b/src/BRepMesh/BRepMesh_PairOfIndex.hxx @@ -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.