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:
parent
cf1ae6e9fe
commit
764e97a419
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -45,5 +45,5 @@ StepVisual_PresentationStyleSelect StepVisual_PresentationStyleAssignment::Style
|
||||
|
||||
Standard_Integer StepVisual_PresentationStyleAssignment::NbStyles () const
|
||||
{
|
||||
return styles->Length();
|
||||
return styles.IsNull() ? 0 : styles->Length();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user