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:
@@ -558,7 +558,7 @@ Standard_Boolean STEPConstruct_Styles::GetColors (const Handle(StepVisual_Styled
|
||||
// parse on styles
|
||||
for(Standard_Integer j=1; j<=style->NbStyles(); j++ ) {
|
||||
Handle(StepVisual_PresentationStyleAssignment) PSA = style->StylesValue ( j );
|
||||
if(PSA.IsNull()) continue;
|
||||
if(PSA.IsNull() || PSA->Styles().IsNull()) continue;
|
||||
IsComponent = Standard_True;
|
||||
|
||||
for(Standard_Integer k=1; k<=PSA->NbStyles(); k++ ) {
|
||||
|
Reference in New Issue
Block a user