From: eap Date: Thu, 9 Mar 2006 12:24:34 +0000 (+0000) Subject: minor changes X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b91a5486b74e76b3136d8c237da2114824d9486;p=modules%2Fsmesh.git minor changes --- diff --git a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx index 8102e0a03..d63d2e6f2 100644 --- a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx +++ b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx @@ -530,13 +530,11 @@ bool StdMeshers_MEFISTO_2D::LoadPoints(SMESH_Mesh & aMesh, static_cast(node->GetPosition().get()); double param = epos->GetUParameter(); if ( !isForward ) param = -param; - params.insert( make_pair( param, node )); - } - int nbPoints = aMesh.GetSubMesh(E)->GetSubMeshDS()->NbNodes(); - if ( nbPoints != params.size()) - { - MESSAGE( "BAD NODE ON EDGE POSITIONS" ); - return false; + if ( !params.insert( make_pair( param, node )).second ) + { + MESSAGE( "BAD NODE ON EDGE POSITIONS" ); + return false; + } } // --- load 2D values into MEFISTO structure,