1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031435: Data Exchange - Problem importing STEP files

- Fix recursion in EntityCluster's methods :
  -  Value
  -  SetValue
  -  Append
- Add destructor in the EntityCluster
- Add check null grade in the STEPCAFControl_GDTProperty::GetDimClassOfTolerance
This commit is contained in:
dpasukhi
2020-04-09 18:40:32 +03:00
committed by bugmaster
parent 590b3f0416
commit e00b8ed948
6 changed files with 107 additions and 16 deletions

View File

@@ -404,13 +404,12 @@ void STEPCAFControl_GDTProperty::GetDimClassOfTolerance(const Handle(StepShape_L
theHolle = Standard_True;
}
Handle(TCollection_HAsciiString) aStr = new TCollection_HAsciiString("01");
if(aGrade->IsSameString(aStr))
theG = XCAFDimTolObjects_DimensionGrade_IT01;
if (!aGrade.IsNull()
&& !aGrade->String().IsEqual("01")
&& aGrade->IsIntegerValue())
{
theG = XCAFDimTolObjects_DimensionGrade_IT01;
}
else
{
theG = (XCAFDimTolObjects_DimensionGrade)(aGrade->IntegerValue()+1);
theG = (XCAFDimTolObjects_DimensionGrade)(aGrade->IntegerValue() + 1);
}
}