From: eap Date: Fri, 24 Jun 2005 11:17:59 +0000 (+0000) Subject: PAL8196. correct the previous fix X-Git-Tag: T2_2_5a~8 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=0f1c4e9fb171a798b620a7c84fa93ae2bfad47a9 PAL8196. correct the previous fix --- diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index a6e1bd550..7a3c34a50 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -603,7 +603,10 @@ SMESH_Algo *SMESH_Gen::GetAlgo(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape) list algoList; aMesh.GetHypotheses( aShape, filter, algoList, true ); - if (algoList.size() != 1 ) { // check if there is one algo several times + if ( algoList.empty() ) + return NULL; + + if (algoList.size() > 1 ) { // check if there is one algo several times list ::iterator algo = algoList.begin(); for ( ; algo != algoList.end(); ++algo ) if ( (*algo) != algoList.front() &&