From dcc66fde79d3b195aad7670bef6a2563ce44c875 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 8 Mar 2023 11:04:59 +0000 Subject: [PATCH] [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 --- .../java/org/apache/poi/hssf/converter/AbstractExcelUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.5