From b7eee22ba4d53a945ea0abd8c0dcd2f04ebe5261 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2013 12:44:42 +0000 Subject: [PATCH] Regression of SALOME_TESTS/Grids/smesh/dump_study_00/B7 In CheckObjectPresence(), skip print statement --- src/SMESH_I/SMESH_2smeshpy.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 44cb333a5..6b3da9a34 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -201,6 +201,9 @@ namespace { _AString comment; _pyID obj = cmd->GetObject(); + if ( obj.Search( "print " ) == 1 ) + return; // print statement + if ( !obj.IsEmpty() && obj.Value( obj.Length() ) == ')' ) // remove an accessor method obj = _pyCommand( obj ).GetObject(); -- 2.39.2