]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021491: EDF 2094 SMESH: Error in the filters dump with "belong to GEOM " criterion
authoreap <eap@opencascade.com>
Thu, 9 Feb 2012 16:24:01 +0000 (16:24 +0000)
committereap <eap@opencascade.com>
Thu, 9 Feb 2012 16:24:01 +0000 (16:24 +0000)
     fix threshold setting

src/SMESH_I/SMESH_2smeshpy.cxx

index 30e9a7348f9d20f2993c94f6db2e19d91fb4b18d..868d62fd69a62ff9f942ea3a32a84472d8ecf229 100644 (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 );