0022238: Study dump produced by SMESH refers to undefined variable names

Fix CheckObjectPresence()
This commit is contained in:
eap 2013-07-02 11:57:22 +00:00
parent 7f5036e20c
commit f9ca194c17

View File

@ -216,16 +216,17 @@ namespace {
return;
}
}
// comment a command having not created Object
// comment a command with an Object that was not created in the script
const _pyID& obj = cmd->GetObject();
if ( !obj.IsEmpty() && cmd->IsStudyEntry( obj ) && !presentObjects.count( obj ))
{
cmd->Comment();
cmd->GetString() += " ### not created object" ;
cmd->GetString() += " ### not created Object" ;
for ( int i = 0; i < cmd->GetNbResultValues(); i++ ) {
_pyID objID = cmd->GetResultValue( i+1 );
theGen->ObjectCreationRemoved( objID ); // objID.SetName( name ) is not needed
}
return;
}
const _pyID& result = cmd->GetResultValue();
if ( result.IsEmpty() || result.Value( 1 ) == '"' || result.Value( 1 ) == '\'' )