mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Fix for bug IPAL13981(SIGSEGV on edit a group).
This commit is contained in:
parent
c5588b6611
commit
5564653998
@ -496,14 +496,14 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup)
|
|||||||
|
|
||||||
if ( !myGroup->_is_nil() )
|
if ( !myGroup->_is_nil() )
|
||||||
{
|
{
|
||||||
myGrpTypeGroup->setButton(0);
|
|
||||||
onGrpTypeChanged(0);
|
|
||||||
|
|
||||||
myActor = SMESH::FindActorByObject(myMesh);
|
myActor = SMESH::FindActorByObject(myMesh);
|
||||||
if ( !myActor )
|
if ( !myActor )
|
||||||
myActor = SMESH::FindActorByObject(myGroup);
|
myActor = SMESH::FindActorByObject(myGroup);
|
||||||
SMESH::SetPickable(myActor);
|
SMESH::SetPickable(myActor);
|
||||||
|
|
||||||
|
myGrpTypeGroup->setButton(0);
|
||||||
|
onGrpTypeChanged(0);
|
||||||
|
|
||||||
myCurrentLineEdit = 0;
|
myCurrentLineEdit = 0;
|
||||||
myElements->clear();
|
myElements->clear();
|
||||||
setSelectionMode(aType);
|
setSelectionMode(aType);
|
||||||
@ -526,14 +526,14 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup)
|
|||||||
|
|
||||||
if ( !myGroupOnGeom->_is_nil() )
|
if ( !myGroupOnGeom->_is_nil() )
|
||||||
{
|
{
|
||||||
myGrpTypeGroup->setButton(1);
|
|
||||||
onGrpTypeChanged(1);
|
|
||||||
|
|
||||||
myActor = SMESH::FindActorByObject(myMesh);
|
myActor = SMESH::FindActorByObject(myMesh);
|
||||||
if ( !myActor )
|
if ( !myActor )
|
||||||
myActor = SMESH::FindActorByObject(myGroup);
|
myActor = SMESH::FindActorByObject(myGroup);
|
||||||
SMESH::SetPickable(myActor);
|
SMESH::SetPickable(myActor);
|
||||||
|
|
||||||
|
myGrpTypeGroup->setButton(1);
|
||||||
|
onGrpTypeChanged(1);
|
||||||
|
|
||||||
QString aShapeName("");
|
QString aShapeName("");
|
||||||
_PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
|
_PTR(Study) aStudy = SMESH::GetActiveStudyDocument();
|
||||||
GEOM::GEOM_Object_var aGroupShape = myGroupOnGeom->GetShape();
|
GEOM::GEOM_Object_var aGroupShape = myGroupOnGeom->GetShape();
|
||||||
|
Loading…
Reference in New Issue
Block a user