From: mzn Date: Mon, 11 Dec 2006 14:43:18 +0000 (+0000) Subject: Fix for bug IPAL13981(SIGSEGV on edit a group). X-Git-Tag: Before_PLEIADES_modifs~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55646539984f5acc53cfcec6589813e29e3d2147;p=modules%2Fsmesh.git Fix for bug IPAL13981(SIGSEGV on edit a group). --- diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 341654567..b1294b037 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -496,13 +496,13 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup) if ( !myGroup->_is_nil() ) { - myGrpTypeGroup->setButton(0); - onGrpTypeChanged(0); - myActor = SMESH::FindActorByObject(myMesh); if ( !myActor ) myActor = SMESH::FindActorByObject(myGroup); SMESH::SetPickable(myActor); + + myGrpTypeGroup->setButton(0); + onGrpTypeChanged(0); myCurrentLineEdit = 0; myElements->clear(); @@ -526,13 +526,13 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup) if ( !myGroupOnGeom->_is_nil() ) { - myGrpTypeGroup->setButton(1); - onGrpTypeChanged(1); - myActor = SMESH::FindActorByObject(myMesh); if ( !myActor ) myActor = SMESH::FindActorByObject(myGroup); SMESH::SetPickable(myActor); + + myGrpTypeGroup->setButton(1); + onGrpTypeChanged(1); QString aShapeName(""); _PTR(Study) aStudy = SMESH::GetActiveStudyDocument();