1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030380: Exception while reading Step-file

Incorrect initialization of array (when upper bound is less than lower bound) has been avoided in some places.
This commit is contained in:
nbv
2018-11-20 16:34:27 +03:00
committed by apn
parent a2fb712bea
commit 0df4bbd689
24 changed files with 59 additions and 43 deletions

View File

@@ -70,5 +70,5 @@ StepVisual_LayeredItem StepVisual_PresentationLayerAssignment::AssignedItemsValu
Standard_Integer StepVisual_PresentationLayerAssignment::NbAssignedItems () const
{
return assignedItems->Length();
return assignedItems.IsNull()? 0 : assignedItems->Length();
}