IPAL21668 Call of Edit Group leads to Crash.

This commit is contained in:
dmv 2010-04-08 07:52:18 +00:00
parent df652e4ebf
commit 0fe4350ada

View File

@ -590,7 +590,8 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup,
if (!aGroupShape->_is_nil())
{
_PTR(SObject) aGroupShapeSO = aStudy->FindObjectID(aGroupShape->GetStudyEntry());
aShapeName = aGroupShapeSO->GetName().c_str();
if ( aGroupShapeSO )
aShapeName = aGroupShapeSO->GetName().c_str();
}
myGeomGroupLine->setText( aShapeName );
myNameChanged = true;