There's a bug in display controls with a selectable color:
Create a display of vectors or streamlines from model data. In the Layer Controls, there is an option for Color. One of the colors listed here is Light Gray. When you select Light Gray, it does not work, and reverts to Gray. There are no error messages.
This is apparently due to logic in GuiUtils.decodeColor, which does some string splitting on spaces to try and assemble RGB values... then if this part fails, it falls back to a pre-defined COLORNAMES list... but, it uses the string value that has already been split up, instead of the original color name method argument, and therefore fails on color names with a space. So, by using "value" instead of "s" when falling back to COLORNAMES, we fix the "Light Gray" bug.
Hey guys,
There's a bug in display controls with a selectable color:
This is apparently due to logic in GuiUtils.decodeColor, which does some string splitting on spaces to try and assemble RGB values... then if this part fails, it falls back to a pre-defined COLORNAMES list... but, it uses the string value that has already been split up, instead of the original color name method argument, and therefore fails on color names with a space. So, by using "value" instead of "s" when falling back to COLORNAMES, we fix the "Light Gray" bug.
This is a fix for McIDAS-V inquiry 1372
[1372]