mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-21 12:22:06 +08: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