mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20: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_"
|
std::string name( str + 3 ); // skip "FT_"
|
||||||
const char** functNames = getFunctNames();
|
const char** functNames = getFunctNames();
|
||||||
int ft = SMESH::FT_Undefined;
|
int ft = 0;
|
||||||
for ( ; ft >= 0; --ft )
|
for ( ; ft < SMESH::FT_Undefined; ++ft )
|
||||||
if ( name == ( functNames[ft] + 3 ))
|
if ( name == ( functNames[ft] + 3 ))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user