]> OCCT Git - occt.git/commitdiff
0033487: Data Exchange, Step Import - Unresolved reference crashes CR33487
authorichesnok <ichesnok@opencascade.com>
Tue, 16 Apr 2024 15:38:20 +0000 (16:38 +0100)
committerichesnok <ichesnok@opencascade.com>
Wed, 17 Apr 2024 07:30:58 +0000 (08:30 +0100)
IsNull() check added for Handle(StepVisual_FillAreaStyleColour).

src/STEPConstruct/STEPConstruct_Styles.cxx

index f1cfe0c4176f2e66ee36d669c14ae6125c1fc836..01e8ee4ac945536d150d883610797fdd232531a9 100644 (file)
@@ -634,7 +634,7 @@ Standard_Boolean STEPConstruct_Styles::GetColors (const Handle(StepVisual_Styled
            for ( Standard_Integer m=1; m <= FAS->NbFillStyles(); m++ ) {
              StepVisual_FillStyleSelect FSS = FAS->FillStylesValue ( m );
              Handle(StepVisual_FillAreaStyleColour) FASC = FSS.FillAreaStyleColour();
-             if ( SurfCol.IsNull() || SSU->Side() != StepVisual_ssNegative ) //abv 30 Mar 00: trj3_s1-pe.stp
+             if ( !FASC.IsNull() && (SurfCol.IsNull() || SSU->Side() != StepVisual_ssNegative) ) //abv 30 Mar 00: trj3_s1-pe.stp
                SurfCol = FASC->FillColour();
            }
            continue;