From 0dad6db09334d7c4e25e588d17ed9bd569a2d91d Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 9 Feb 2012 16:24:01 +0000 Subject: [PATCH] 0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion fix threshold setting --- src/SMESH_I/SMESH_2smeshpy.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 30e9a7348..868d62fd6 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -544,7 +544,9 @@ Handle(_pyCommand) _pyGen::AddCommand( const TCollection_AsciiString& theCommand if ( -1 < iGeom && iGeom < SMESH::Geom_POLYHEDRA+1 ) Threshold = SMESH + types[ iGeom ]; } - if ( ThresholdStr.Length() != 2 ) // not '' or "" + if ( ThresholdID.Length() != 2 && ThresholdStr.Length() != 2) // not '' or "" + aCommand->SetArg( 4, ThresholdID.SubString( 2, ThresholdID.Length()-1 )); // shape entry + else if ( ThresholdStr.Length() != 2 ) aCommand->SetArg( 4, ThresholdStr ); else if ( ThresholdID.Length() != 2 ) aCommand->SetArg( 4, ThresholdID ); -- 2.39.2