From: eap Date: Fri, 20 Sep 2013 15:34:52 +0000 (+0000) Subject: 0022318: [CEA] Problems with study dump in SMESH X-Git-Tag: V7_3_0a1~145 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d217545eecc3ccbb084fb77a6faf8b067ea2e706;p=modules%2Fsmesh.git 0022318: [CEA] Problems with study dump in SMESH Restore Swap "aFilterManager.CreateFilter()" and "smesh.GetFilterFromCriteria(criteria)" --- diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 6051ea1e9..870112bf9 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -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" ) {