From 0f1c4e9fb171a798b620a7c84fa93ae2bfad47a9 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 24 Jun 2005 11:17:59 +0000 Subject: [PATCH] PAL8196. correct the previous fix --- src/SMESH/SMESH_Gen.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() &&