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
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 4.2 [ 10243 ] |
Salesforce Case | [] | |
Assignee Priority | P1 |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #24052 | Tue Mar 01 11:55:27 MST 2011 | patrick.corless | |
Files Changed | ||||
![]() ![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #24053 | Tue Mar 01 11:58:31 MST 2011 | patrick.corless | |
Files Changed | ||||
![]() ![]() ![]() ![]() |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Pretty simple issue where we would ignore the white hex value or name and apply the default colour #808080.