}
// Check that there are no other objects with the same name in the document
- if( !myIsEdit || ( !myEditedObject.IsNull() && myEditedObject->GetName() != anObjectName ) )
+ if( myEditedObject->GetName() != anObjectName )
{
Handle(HYDROData_Entity) anObject = HYDROGUI_Tool::FindObjectByName( module(), anObjectName );
if( !anObject.IsNull() ) {