mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 02:04:17 +05:00
23336: [CEA 1940] Crash when editing a skin mesh generated by MG-Cleaner
This commit is contained in:
parent
8beac8f8eb
commit
24b702afda
@ -325,13 +325,16 @@ static SALOMEDS::SObject_ptr publish(SALOMEDS::Study_ptr theStudy,
|
|||||||
selAttr->SetSelectable( false );
|
selAttr->SetSelectable( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !isNewSO )
|
||||||
|
aStudyBuilder->RemoveReference( SO );// remove garbage reference (23336)
|
||||||
|
|
||||||
// add object to the use case tree
|
// add object to the use case tree
|
||||||
// (to support tree representation customization and drag-n-drop)
|
// (to support tree representation customization and drag-n-drop)
|
||||||
if ( isNewSO )
|
if ( isNewSO || !useCaseBuilder->IsUseCaseNode( SO ))
|
||||||
{
|
{
|
||||||
if ( !CORBA::is_nil( objAfter ) )
|
if ( !CORBA::is_nil( objAfter ))
|
||||||
useCaseBuilder->InsertBefore( SO, objAfter ); // insert at given tag
|
useCaseBuilder->InsertBefore( SO, objAfter ); // insert at given tag
|
||||||
else if ( !useCaseBuilder->IsUseCaseNode( SO ) )
|
else if ( !useCaseBuilder->IsUseCaseNode( SO ))
|
||||||
useCaseBuilder->AppendTo( theFatherObject, SO ); // append to the end of list
|
useCaseBuilder->AppendTo( theFatherObject, SO ); // append to the end of list
|
||||||
}
|
}
|
||||||
return SO._retn();
|
return SO._retn();
|
||||||
|
Loading…
Reference in New Issue
Block a user