https://bz.apache.org/bugzilla/show_bug.cgi?id=66518

            Bug ID: 66518
           Summary: ExcelToHtmlConverte conversion to hexadecimal color
                    format is wrong
           Product: POI
           Version: 5.2.3-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

org.apache.poi.hssf.converter.AbstractExcelUtils.getColor(HSSFColor)

#0e3466 will be converted to #e3466

The part of code:
for (short s : color.getTriplet()) {
    if (s < 10) {
        stringBuilder.append('0');
    }
        stringBuilder.append(Integer.toHexString(s));
    }
}

And I think that:
's < 10' should be 's < 16'

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to