This commit is contained in:
John Lewin 2018-07-12 22:49:39 -07:00
parent a466f8f708
commit 685541523b
46 changed files with 84 additions and 88 deletions

View file

@ -41,7 +41,7 @@ namespace MatterHackers.MatterControl.DesignTools
double Transform(Color color);
/// <summary>
/// Do the actual thresholding of the color. This will convert it inte tho coordinate space
/// Do the actual thresholding of the color. This will convert it into the coordinate space
/// and also apply any clamping to the values.
/// </summary>
/// <param name="color"></param>

View file

@ -346,10 +346,10 @@ namespace MatterHackers.MatterControl.DesignTools
RangeEnd = Math.Max(0, Math.Min(1, RangeEnd));
if (RangeStart > RangeEnd - minSeparation)
{
// values are overlaped or too close together
// values are overlapped or too close together
if (RangeEnd < 1 - minSeparation)
{
// move the end up whever possible
// move the end up whenever possible
RangeEnd = RangeStart + minSeparation;
}
else