From d217545eecc3ccbb084fb77a6faf8b067ea2e706 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 20 Sep 2013 15:34:52 +0000 Subject: [PATCH] 0022318: [CEA] Problems with study dump in SMESH Restore Swap "aFilterManager.CreateFilter()" and "smesh.GetFilterFromCriteria(criteria)" --- src/SMESH_I/SMESH_2smeshpy.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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" ) { -- 2.30.2