0021014: EDF 1583 SMESH: Improvement of the Python Dump for the creation of groups

fix bug of editing a not standalone group
This commit is contained in:
eap 2011-06-27 07:57:51 +00:00
parent a6fa2d8561
commit c5438eec06

View File

@ -1113,7 +1113,7 @@ bool SMESHGUI_GroupDlg::onApply()
} }
else else
{ {
myGroup->SetName(myName->text().toLatin1().data()); resultGroup->SetName(myName->text().toLatin1().data());
if ( aMeshGroupSO ) if ( aMeshGroupSO )
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) { if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) {