ICEpdf
  1. ICEpdf
  2. PDF-244

Black and #000000 colours are not correctly parsed in org.icepdf.core.views.* system properties.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      any

      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.

        Activity

        Hide
        Patrick Corless added a comment -

        Pretty simple issue where we would ignore the white hex value or name and apply the default colour #808080.

        Show
        Patrick Corless added a comment - Pretty simple issue where we would ignore the white hex value or name and apply the default colour #808080.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: