From f9ca194c17fc7540c8ad904f791870121e2aae64 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 2 Jul 2013 11:57:22 +0000 Subject: [PATCH] 0022238: Study dump produced by SMESH refers to undefined variable names Fix CheckObjectPresence() --- src/SMESH_I/SMESH_2smeshpy.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ) == '\'' ) -- 2.39.2