From: eap Date: Thu, 7 Jul 2011 14:21:27 +0000 (+0000) Subject: 0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups X-Git-Tag: V6_4_0a1~162 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6263d10065038d0aa8a0447df936293055f9a0fb;p=modules%2Fsmesh.git 0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups In FunctorTypeToString(), return "FT_Undefined" for an invalid input --- 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 ]; }