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:
@@ -70,5 +70,5 @@ StepVisual_LayeredItem StepVisual_PresentationLayerAssignment::AssignedItemsValu
|
||||
|
||||
Standard_Integer StepVisual_PresentationLayerAssignment::NbAssignedItems () const
|
||||
{
|
||||
return assignedItems->Length();
|
||||
return assignedItems.IsNull()? 0 : assignedItems->Length();
|
||||
}
|
||||
|
Reference in New Issue
Block a user