View | Details | Raw Unified | Return to bug 51476
Collapse All | Expand All

(-)src/java/org/apache/poi/ss/format/CellFormat.java (-2 / +2 lines)
Lines 212-218 Link Here
212
        case Cell.CELL_TYPE_BLANK:
212
        case Cell.CELL_TYPE_BLANK:
213
            return apply("");
213
            return apply("");
214
        case Cell.CELL_TYPE_BOOLEAN:
214
        case Cell.CELL_TYPE_BOOLEAN:
215
            return apply(c.getStringCellValue());
215
            return apply(Boolean.toString(c.getBooleanCellValue()));
216
        case Cell.CELL_TYPE_NUMERIC:
216
        case Cell.CELL_TYPE_NUMERIC:
217
            return apply(c.getNumericCellValue());
217
            return apply(c.getNumericCellValue());
218
        case Cell.CELL_TYPE_STRING:
218
        case Cell.CELL_TYPE_STRING:
Lines 254-260 Link Here
254
        case Cell.CELL_TYPE_BLANK:
254
        case Cell.CELL_TYPE_BLANK:
255
            return apply(label, "");
255
            return apply(label, "");
256
        case Cell.CELL_TYPE_BOOLEAN:
256
        case Cell.CELL_TYPE_BOOLEAN:
257
            return apply(label, c.getStringCellValue());
257
            return apply(Boolean.toString(c.getBooleanCellValue()));
258
        case Cell.CELL_TYPE_NUMERIC:
258
        case Cell.CELL_TYPE_NUMERIC:
259
            return apply(label, c.getNumericCellValue());
259
            return apply(label, c.getNumericCellValue());
260
        case Cell.CELL_TYPE_STRING:
260
        case Cell.CELL_TYPE_STRING:
(-)src/examples/src/org/apache/poi/ss/examples/html/XSSFHtmlHelper.java (-1 / +5 lines)
Lines 58-64 Link Here
58
        // support it will ignore the rgba specification and stick with the
58
        // support it will ignore the rgba specification and stick with the
59
        // solid color, which is declared first
59
        // solid color, which is declared first
60
        out.format("  %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
60
        out.format("  %s: #%02x%02x%02x;%n", attr, rgb[0], rgb[1], rgb[2]);
61
        byte[] argb = color.getARgb();
62
        if (argb == null) {
63
            return;
64
        }
61
        out.format("  %s: rgba(0x%02x, 0x%02x, 0x%02x, 0x%02x);%n", attr,
65
        out.format("  %s: rgba(0x%02x, 0x%02x, 0x%02x, 0x%02x);%n", attr,
62
                rgb[0], rgb[1], rgb[2], rgb[3]);
66
                argb[3], argb[0], argb[1], argb[2]);
63
    }
67
    }
64
}
68
}

Return to bug 51476