mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-11 01:43:06 +05:00
0022238: Study dump produced by SMESH refers to undefined variable names
Fix CheckObjectPresence()
This commit is contained in:
parent
7f5036e20c
commit
f9ca194c17
@ -216,16 +216,17 @@ namespace {
|
|||||||
return;
|
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();
|
const _pyID& obj = cmd->GetObject();
|
||||||
if ( !obj.IsEmpty() && cmd->IsStudyEntry( obj ) && !presentObjects.count( obj ))
|
if ( !obj.IsEmpty() && cmd->IsStudyEntry( obj ) && !presentObjects.count( obj ))
|
||||||
{
|
{
|
||||||
cmd->Comment();
|
cmd->Comment();
|
||||||
cmd->GetString() += " ### not created object" ;
|
cmd->GetString() += " ### not created Object" ;
|
||||||
for ( int i = 0; i < cmd->GetNbResultValues(); i++ ) {
|
for ( int i = 0; i < cmd->GetNbResultValues(); i++ ) {
|
||||||
_pyID objID = cmd->GetResultValue( i+1 );
|
_pyID objID = cmd->GetResultValue( i+1 );
|
||||||
theGen->ObjectCreationRemoved( objID ); // objID.SetName( name ) is not needed
|
theGen->ObjectCreationRemoved( objID ); // objID.SetName( name ) is not needed
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const _pyID& result = cmd->GetResultValue();
|
const _pyID& result = cmd->GetResultValue();
|
||||||
if ( result.IsEmpty() || result.Value( 1 ) == '"' || result.Value( 1 ) == '\'' )
|
if ( result.IsEmpty() || result.Value( 1 ) == '"' || result.Value( 1 ) == '\'' )
|
||||||
|
Loading…
Reference in New Issue
Block a user