Crash if assign set of hypotheses

This commit is contained in:
asl 2005-12-12 13:06:48 +00:00
parent fdc26f9a4d
commit b6a4db8739

View File

@ -633,6 +633,9 @@ void SMESHGUI_MeshOp::onHypoSet( const QString& theSetName )
{
const QString& aHypoTypeName = (*aHypoList)[ i ];
HypothesisData* aHypData = SMESH::GetHypothesisData( aHypoTypeName );
if( !aHypData )
continue;
int aDim = aHypData->Dim[0];
// create or/and set
int index = -1;