From: san Date: Fri, 18 Nov 2011 09:45:32 +0000 (+0000) Subject: Issue 21428: [CEA] Dump Python produces incorrect output in SMESH X-Git-Tag: PPGP_V0_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_PPGP_Dev;hp=13c60ab0d120a652dfd832d5ac791d515d36e9d3;p=modules%2Fsmesh.git Issue 21428: [CEA] Dump Python produces incorrect output in SMESH Correction taken from SALOME 6.4.0 and integrated into BR_PPGP_Dev for PPGP v0.1 production needs. --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 767c32582..0fba2614b 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -423,7 +423,9 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand ) // objects erasing creation command if no more it's commands invoked: // SMESH_Pattern, FilterManager - if ( method == "GetPattern" || method == "CreateFilterManager" ) { + if ( method == "GetPattern" || + method == "CreateFilterManager" || + method == "CreateMeasurements" ) { Handle(_pyObject) obj = new _pySelfEraser( theCommand ); if ( !myObjects.insert( make_pair( obj->GetID(), obj )).second ) theCommand->Clear(); // already created