]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Restore
authoreap <eap@opencascade.com>
Fri, 20 Sep 2013 15:10:03 +0000 (15:10 +0000)
committereap <eap@opencascade.com>
Fri, 20 Sep 2013 15:10:03 +0000 (15:10 +0000)
  Swap "aFilterManager.CreateFilter()" and "smesh.GetFilterFromCriteria(criteria)"

src/SMESH_I/SMESH_2smeshpy.cxx

index 3a0d8120cfa551bec6144743ffd115f510acb302..4721b7f77ea62542aa597763801399f4c7423fb2 100644 (file)
@@ -4617,12 +4617,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?
+    //GetCreationCmd()->Clear();
   }
   else if ( theCommand->GetMethod() == "SetMesh" )
   {