PAL10347 - can't create group on geometry

This commit is contained in:
asl 2005-10-27 08:09:13 +00:00
parent 73c48bae5a
commit 1ca52d6d92

View File

@ -844,7 +844,7 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
aGroupMainShape = GEOM::GEOM_Object::_duplicate(myGeomGroup);
_PTR(SObject) aGroupMainShapeSO =
//aStudy->FindObjectIOR(aStudy->ConvertObjectToIOR(aGroupMainShape));
aStudy->FindObjectIOR(aGroupMainShape->GetStudyEntry());
aStudy->FindObjectID(aGroupMainShape->GetStudyEntry());
// The mesh SObject
_PTR(SObject) aMeshSO = SMESH::FindSObject(myMesh);
@ -1209,7 +1209,7 @@ void SMESHGUI_GroupDlg::onAdd()
if (aGroupType == aType) {
_PTR(SObject) aGroupSO =
//aStudy->FindObjectIOR(aStudy->ConvertObjectToIOR(myGeomGroup));
aStudy->FindObjectIOR(myGeomGroup->GetStudyEntry());
aStudy->FindObjectID(myGeomGroup->GetStudyEntry());
// Construct filter
SMESH::FilterManager_var aFilterMgr = SMESH::GetFilterManager();
SMESH::Filter_var aFilter = aFilterMgr->CreateFilter();