mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
In StringToFunctorType(), return FT_Undefined for an invalid input
This commit is contained in:
parent
339862d49c
commit
f1b9e57c55
@ -3811,8 +3811,8 @@ SMESH::FunctorType SMESH::StringToFunctorType(const char* str)
|
||||
{
|
||||
std::string name( str + 3 ); // skip "FT_"
|
||||
const char** functNames = getFunctNames();
|
||||
int ft = SMESH::FT_Undefined;
|
||||
for ( ; ft >= 0; --ft )
|
||||
int ft = 0;
|
||||
for ( ; ft < SMESH::FT_Undefined; ++ft )
|
||||
if ( name == ( functNames[ft] + 3 ))
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user