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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user