Salome HOME
0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups
authoreap <eap@opencascade.com>
Thu, 7 Jul 2011 14:21:27 +0000 (14:21 +0000)
committereap <eap@opencascade.com>
Thu, 7 Jul 2011 14:21:27 +0000 (14:21 +0000)
  In FunctorTypeToString(), return "FT_Undefined" for an invalid input

src/SMESH_I/SMESH_Filter_i.cxx

index f2ce323edcedaecfb4e68a5890da0a6edb7b40c8..b7c9c8ffb21048307e10863e5863b43484818732 100644 (file)
@@ -3792,7 +3792,7 @@ static const char** getFunctNames()
 const char* SMESH::FunctorTypeToString(SMESH::FunctorType ft)
 {
   if ( ft < 0 || ft > SMESH::FT_Undefined )
-    return 0;
+    return "FT_Undefined";
   return getFunctNames()[ ft ];
 }