From: dkulikov Date: Mon, 23 Sep 2024 18:20:05 +0000 (+0000) Subject: small fix X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7b6f1c7592bb477c01f35af54a4de603462ef0c0;p=occt.git small fix --- diff --git a/src/STEPConstruct/STEPConstruct_Styles.cxx b/src/STEPConstruct/STEPConstruct_Styles.cxx index ca897a1190..50518d23f7 100644 --- a/src/STEPConstruct/STEPConstruct_Styles.cxx +++ b/src/STEPConstruct/STEPConstruct_Styles.cxx @@ -213,8 +213,8 @@ namespace // SurfaceStyleFillArea, SurfaceStyleBoundary, SurfaceStyleRendering. // So we're using && operator to stop as soon as this type is processed. ProcessAsSurfaceStyleFillArea(aSSES, aSSU->Side(), theSurfaceColour) - && ProcessAsSurfaceStyleBoundary(aSSES, theBoundaryColour) - && ProcessAsSurfaceStyleRendering(aSSES, theRenderColour, theRenderTransparency); + || ProcessAsSurfaceStyleBoundary(aSSES, theBoundaryColour) + || ProcessAsSurfaceStyleRendering(aSSES, theRenderColour, theRenderTransparency); } return Standard_True; } @@ -799,7 +799,7 @@ Standard_Boolean STEPConstruct_Styles::GetColors(const Handle(StepVisual_StyledI theBoundaryColour, theRenderColour, theRenderTransparency) - && ProcessAsCurveStyle(aPSS, theCurveColour); + || ProcessAsCurveStyle(aPSS, theCurveColour); } } return !theSurfaceColour.IsNull() || !theBoundaryColour.IsNull() || !theCurveColour.IsNull()