From: mnv Date: Tue, 26 Jun 2018 13:27:12 +0000 (+0300) Subject: 0029894: Visualization - AIS_ColorScale ColorRange returns only min color X-Git-Tag: OCCT_VC2017_73~91 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=35cbf341d14c588115da658e68bcab75f162760a;p=occt.git 0029894: Visualization - AIS_ColorScale ColorRange returns only min color A typo in AIS_ColorScale::ColorRange function has been fixed. --- diff --git a/src/AIS/AIS_ColorScale.hxx b/src/AIS/AIS_ColorScale.hxx index 44edaf036f..4ee7d7b0fe 100644 --- a/src/AIS/AIS_ColorScale.hxx +++ b/src/AIS/AIS_ColorScale.hxx @@ -133,7 +133,7 @@ public: Quantity_Color& theMaxColor) const { theMinColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS); - theMaxColor.SetValues (hueToValidRange (myColorHlsMin[0]), myColorHlsMin[1], myColorHlsMin[2], Quantity_TOC_HLS); + theMaxColor.SetValues (hueToValidRange (myColorHlsMax[0]), myColorHlsMax[1], myColorHlsMax[2], Quantity_TOC_HLS); } //! Sets color range corresponding to minimum and maximum values.