Details
Description
Our simple colour parsing code can't take a zero or black value when setting colour values for various RI colours.
String color = Defs.sysProperty(
"org.icepdf.core.views.background.color", "#808080");
int colorValue = ColorUtil.convertColor(color);
backgroundColor =
new Color(colorValue > 0 ? colorValue :
Integer.parseInt("808080", 16));
colorValue > 0 should likely be re-factored.
String color = Defs.sysProperty(
"org.icepdf.core.views.background.color", "#808080");
int colorValue = ColorUtil.convertColor(color);
backgroundColor =
new Color(colorValue > 0 ? colorValue :
Integer.parseInt("808080", 16));
colorValue > 0 should likely be re-factored.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Pretty simple issue where we would ignore the white hex value or name and apply the default colour #808080.