From a3ac9c24cebe3368c2ab5557bf5a91dfb3131600 Mon Sep 17 00:00:00 2001 From: Pawel Date: Thu, 26 Mar 2015 15:26:16 +0300 Subject: [PATCH] 0025953: BRepMesh_PairOfIndex::Prepend - variable assigned twice Corrected index assignment. Minor change in exception message. --- src/BRepMesh/BRepMesh_PairOfIndex.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.