0021014: EDF 1583 SMESH: Improvement of the Python Dumpfor the creation of groups

In FunctorTypeToString(), return "FT_Undefined" for an invalid input
This commit is contained in:
eap 2011-07-07 14:21:27 +00:00
parent 974453b6c1
commit 6263d10065

View 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 ];
}