Salome HOME
Issue 21428: [CEA] Dump Python produces incorrect output in SMESH BR_PPGP_Dev PPGP_V0_1
authorsan <san@opencascade.com>
Fri, 18 Nov 2011 09:45:32 +0000 (09:45 +0000)
committersan <san@opencascade.com>
Fri, 18 Nov 2011 09:45:32 +0000 (09:45 +0000)
Correction taken from SALOME 6.4.0 and integrated into BR_PPGP_Dev for PPGP v0.1 production needs.

src/SMESH_I/SMESH_2smeshpy.cxx

index 767c325827692f09fccd4edfb3a7491a78a45a6c..0fba2614b4ddc7595585ee2b25d0e37000c33a12 100644 (file)
@@ -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