From: kgv Date: Sat, 4 Dec 2021 12:49:14 +0000 (+0300) Subject: 0032711: Coding Rules - new warning in AIS_Shape::Color() after integration fix for... X-Git-Tag: V7_7_0_beta~225 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ccd3858e636767d769931e8a1ade78114be02516;p=occt.git 0032711: Coding Rules - new warning in AIS_Shape::Color() after integration fix for 0032704 --- diff --git a/src/AIS/AIS_Shape.cxx b/src/AIS/AIS_Shape.cxx index 746db59025..5fcb6fa631 100644 --- a/src/AIS/AIS_Shape.cxx +++ b/src/AIS/AIS_Shape.cxx @@ -359,7 +359,7 @@ void AIS_Shape::Color (Quantity_Color& theColor) const { if (const Handle(Prs3d_ShadingAspect)& aShading = myDrawer->ShadingAspect()) { - theColor = myDrawer->ShadingAspect()->Color(myCurrentFacingModel); + theColor = aShading->Color(myCurrentFacingModel); } }