From: eap Date: Tue, 2 Jul 2013 11:57:22 +0000 (+0000) Subject: 0022238: Study dump produced by SMESH refers to undefined variable names X-Git-Tag: V6_7_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=f9ca194c17fc7540c8ad904f791870121e2aae64 0022238: Study dump produced by SMESH refers to undefined variable names Fix CheckObjectPresence() --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 7ab45aa18..3c2e299d8 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -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 ) == '\'' )