]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0022238: Study dump produced by SMESH refers to undefined variable names
authoreap <eap@opencascade.com>
Tue, 2 Jul 2013 11:57:22 +0000 (11:57 +0000)
committereap <eap@opencascade.com>
Tue, 2 Jul 2013 11:57:22 +0000 (11:57 +0000)
Fix CheckObjectPresence()

src/SMESH_I/SMESH_2smeshpy.cxx

index 7ab45aa18cb4476bbc3cc30c16a05dfcede6df96..3c2e299d89c309c36b32e1495ec56934115ef3a9 100644 (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 ) == '\'' )