1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

refs #478: fast fixes

This commit is contained in:
ika 2017-10-06 16:14:09 +03:00
parent cf1ae6e9fe
commit 764e97a419
2 changed files with 5 additions and 3 deletions

View File

@ -3074,7 +3074,8 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
{
TDF_Label aShL;
aSTool->Search(aSh, aShL, Standard_True, Standard_True, Standard_True);
aShLS1.Append(aShL);
if (!aShL.IsNull())
aShLS1.Append(aShL);
}
}
if (!aSeqRI2.IsEmpty())
@ -3092,7 +3093,8 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
{
TDF_Label aShL;
aSTool->Search(aSh, aShL, Standard_True, Standard_True, Standard_True);
aShLS2.Append(aShL);
if (!aShL.IsNull())
aShLS2.Append(aShL);
}
}
}

View File

@ -45,5 +45,5 @@ StepVisual_PresentationStyleSelect StepVisual_PresentationStyleAssignment::Style
Standard_Integer StepVisual_PresentationStyleAssignment::NbStyles () const
{
return styles->Length();
return styles.IsNull() ? 0 : styles->Length();
}