In existingHyps(), protection for hypotheses w/o any gui

HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() );
+            if ( !aData) continue;
This commit is contained in:
eap 2010-11-10 15:19:59 +00:00
parent 49792ab647
commit c7886f3dd2

View File

@ -860,6 +860,7 @@ void SMESHGUI_MeshOp::existingHyps( const int theDim,
if ( !aHypVar->_is_nil() ) if ( !aHypVar->_is_nil() )
{ {
HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() ); HypothesisData* aData = SMESH::GetHypothesisData( aHypVar->GetName() );
if ( !aData) continue;
if ( ( theDim == -1 || aData->Dim.contains( theDim ) ) && if ( ( theDim == -1 || aData->Dim.contains( theDim ) ) &&
( isCompatible ( theAlgoData, aData, theHypType )) && ( isCompatible ( theAlgoData, aData, theHypType )) &&
( isAux == aData->IsAux )) ( isAux == aData->IsAux ))