SALOME_View* vf = theViewFrame ? theViewFrame : GetActiveView();
if ( vf )
- prs = vf->CreatePrs( entry.toLatin1() );
+ {
+ if(entry.isNull())
+ prs = vf->CreatePrs( 0 );
+ else
+ prs = vf->CreatePrs( entry.toLatin1() );
+ }
return prs;
}
//MESSAGE("Parent id " << parent_id << " with position " << pos_in_parent);
- _PTR(SObject) obj_parent = myStudyDS->FindObjectID( parent_id );
+ //_PTR(SObject) obj_parent = myStudyDS->FindObjectID( parent_id );
+ _PTR(SObject) obj_parent = obj->GetFather();
//MESSAGE("Checking the ID from the sObj_parent : " << obj_parent->GetID());
SUIT_DataObject* suit_obj;