From 35cbf341d14c588115da658e68bcab75f162760a Mon Sep 17 00:00:00 2001 From: mnv Date: Tue, 26 Jun 2018 16:27:12 +0300 Subject: [PATCH] 0029894: Visualization - AIS_ColorScale ColorRange returns only min color A typo in AIS_ColorScale::ColorRange function has been fixed. --- src/AIS/AIS_ColorScale.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.