From 4b91a5486b74e76b3136d8c237da2114824d9486 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 9 Mar 2006 12:24:34 +0000 Subject: [PATCH] minor changes --- src/StdMeshers/StdMeshers_MEFISTO_2D.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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, -- 2.39.2