From 6263d10065038d0aa8a0447df936293055f9a0fb Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Jul 2011 14:21:27 +0000 Subject: [PATCH] 0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups In FunctorTypeToString(), return "FT_Undefined" for an invalid input --- src/SMESH_I/SMESH_Filter_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index f2ce323ed..b7c9c8ffb 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -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 ]; } -- 2.39.2