mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
IPAL21354 Deleting of referenced father object doesn't work.
This commit is contained in:
parent
f697bd6392
commit
051a65748e
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user