mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-31 03:40:34 +05:00
PAL8196. correct the previous fix
This commit is contained in:
parent
e958f3ed7d
commit
0f1c4e9fb1
@ -603,7 +603,10 @@ SMESH_Algo *SMESH_Gen::GetAlgo(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape)
|
|||||||
list <const SMESHDS_Hypothesis * > algoList;
|
list <const SMESHDS_Hypothesis * > algoList;
|
||||||
aMesh.GetHypotheses( aShape, filter, algoList, true );
|
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 <const SMESHDS_Hypothesis * >::iterator algo = algoList.begin();
|
list <const SMESHDS_Hypothesis * >::iterator algo = algoList.begin();
|
||||||
for ( ; algo != algoList.end(); ++algo )
|
for ( ; algo != algoList.end(); ++algo )
|
||||||
if ( (*algo) != algoList.front() &&
|
if ( (*algo) != algoList.front() &&
|
||||||
|
Loading…
Reference in New Issue
Block a user