{
Handle(HYDROData_Profile) aProfile =
Handle(HYDROData_Profile)::DownCast( aRefProfileUZ->GetFatherObject() );
- if ( !aProfile.IsNull() )
+ if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
{
QString aProfileName = aProfile->GetObjPyName();
if ( !aProfileName.isEmpty() )
{
Handle(HYDROData_Profile) aProfile =
Handle(HYDROData_Profile)::DownCast( aChildProfileUZ->GetFatherObject() );
- if ( !aProfile.IsNull() )
+ if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
{
QString aProfileName = aProfile->GetObjPyName();
if ( !aProfileName.isEmpty() )