diff --git a/src/RWStepElement/RWStepElement_RWElementDescriptor.cxx b/src/RWStepElement/RWStepElement_RWElementDescriptor.cxx index 1ed047bda4..ce3fb7d272 100755 --- a/src/RWStepElement/RWStepElement_RWElementDescriptor.cxx +++ b/src/RWStepElement/RWStepElement_RWElementDescriptor.cxx @@ -48,9 +48,9 @@ void RWStepElement_RWElementDescriptor::ReadStep (const Handle(StepData_StepRead StepElement_ElementOrder aTopologyOrder; if (data->ParamType (num, 1) == Interface_ParamEnum) { Standard_CString text = data->ParamCValue(num, 1); - if (strcmp(text, ".LINEAR.")) aTopologyOrder = StepElement_Linear; - else if (strcmp(text, ".QUADRATIC.")) aTopologyOrder = StepElement_Quadratic; - else if (strcmp(text, ".CUBIC.")) aTopologyOrder = StepElement_Cubic; + if (strcmp(text, ".LINEAR.") == 0) aTopologyOrder = StepElement_Linear; + else if (strcmp(text, ".QUADRATIC.") == 0) aTopologyOrder = StepElement_Quadratic; + else if (strcmp(text, ".CUBIC.") == 0) aTopologyOrder = StepElement_Cubic; else ach->AddFail("Parameter #1 (topology_order) has not allowed value"); } else ach->AddFail("Parameter #1 (topology_order) is not enumeration"); diff --git a/src/RWStepFEA/RWStepFEA_RWFeaAxis2Placement3d.cxx b/src/RWStepFEA/RWStepFEA_RWFeaAxis2Placement3d.cxx index 74cbda0230..9a1c6a923d 100755 --- a/src/RWStepFEA/RWStepFEA_RWFeaAxis2Placement3d.cxx +++ b/src/RWStepFEA/RWStepFEA_RWFeaAxis2Placement3d.cxx @@ -78,9 +78,9 @@ void RWStepFEA_RWFeaAxis2Placement3d::ReadStep (const Handle(StepData_StepReader StepFEA_CoordinateSystemType aSystemType; if (data->ParamType (num, 5) == Interface_ParamEnum) { Standard_CString text = data->ParamCValue(num, 5); - if (strcmp(text, ".CARTESIAN.")) aSystemType = StepFEA_Cartesian; - else if (strcmp(text, ".CYLINDRICAL.")) aSystemType = StepFEA_Cylindrical; - else if (strcmp(text, ".SPHERICAL.")) aSystemType = StepFEA_Spherical; + if (strcmp(text, ".CARTESIAN.") == 0) aSystemType = StepFEA_Cartesian; + else if (strcmp(text, ".CYLINDRICAL.") == 0) aSystemType = StepFEA_Cylindrical; + else if (strcmp(text, ".SPHERICAL.") == 0) aSystemType = StepFEA_Spherical; else ach->AddFail("Parameter #5 (system_type) has not allowed value"); } else ach->AddFail("Parameter #5 (system_type) is not enumeration");