Salome HOME
0022318: [CEA] Problems with study dump in SMESH
authoreap <eap@opencascade.com>
Fri, 20 Sep 2013 15:34:52 +0000 (15:34 +0000)
committereap <eap@opencascade.com>
Fri, 20 Sep 2013 15:34:52 +0000 (15:34 +0000)
Restore
  Swap "aFilterManager.CreateFilter()" and "smesh.GetFilterFromCriteria(criteria)"

src/SMESH_I/SMESH_2smeshpy.cxx

index 6051ea1e95555d5a8a90da6b762536550116278b..870112bf9699d16da01511c0ed947e0518a5b50f 100644 (file)
@@ -4641,12 +4641,12 @@ void _pyFilter::Process( const Handle(_pyCommand)& theCommand)
     theCommand->SetMethod( "GetFilterFromCriteria" );
 
     // Swap "aFilterManager.CreateFilter()" and "smesh.GetFilterFromCriteria(criteria)"
-    // GetCreationCmd()->Clear();
-    // GetCreationCmd()->GetString() = theCommand->GetString();
-    // theCommand->Clear();
-    // theCommand->AddDependantCmd( GetCreationCmd() );
-    // why swap?
     GetCreationCmd()->Clear();
+    GetCreationCmd()->GetString() = theCommand->GetString();
+    theCommand->Clear();
+    theCommand->AddDependantCmd( GetCreationCmd() );
+    // why swap? -- it's needed
+    //GetCreationCmd()->Clear();
   }
   else if ( theCommand->GetMethod() == "SetMesh" )
   {