From: eap Date: Thu, 9 Feb 2012 16:24:01 +0000 (+0000) Subject: 0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion X-Git-Tag: V6_5_0a1~142 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0dad6db09334d7c4e25e588d17ed9bd569a2d91d;p=modules%2Fsmesh.git 0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion fix threshold setting --- 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 );