IPAL21354 Deleting of referenced father object doesn't work.

This commit is contained in:
dmv 2009-12-10 14:15:54 +00:00
parent f697bd6392
commit 051a65748e

View File

@ -490,8 +490,11 @@ void GEOMToolsGUI::OnEditDelete()
// check if object is reference
_PTR(SObject) refobj;
if ( obj && obj->ReferencedObject( refobj ) )
continue; // skip references
if ( obj && obj->ReferencedObject( refobj ) ) {
// get the main object by reference IPAL 21354
obj = refobj;
entry = obj->GetID().c_str();
}
// ...
QString aName = obj->GetName().c_str();
if ( entry == geomComp ) {