From: PJ Fanning Date: Wed, 8 Mar 2023 11:04:59 +0000 (+0000) Subject: [bug-66518] fix issue in AbstractExcelUtils.getColor(HSSFColor) X-Git-Tag: REL_5_2_4~224 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcc66fde79d3b195aad7670bef6a2563ce44c875;p=poi.git [bug-66518] fix issue in AbstractExcelUtils.getColor(HSSFColor) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908192 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hssf/converter/AbstractExcelUtils.java b/poi-scratchpad/src/main/java/org/apache/poi/hssf/converter/AbstractExcelUtils.java index 9d85fea971..6ae0da8e01 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hssf/converter/AbstractExcelUtils.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hssf/converter/AbstractExcelUtils.java @@ -119,7 +119,7 @@ class AbstractExcelUtils { } stringBuilder.append(hex); } - String result = color.getHexString(); + String result = stringBuilder.toString(); if (result.equals("#ffffff")) { return "white";