0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion

fix threshold setting
This commit is contained in:
eap 2012-02-09 16:24:01 +00:00
parent 2b3a86e7ca
commit 0dad6db093

View File

@ -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 );