]> source.dussan.org Git - poi.git/commitdiff
[bug-66518] fix issue in AbstractExcelUtils.getColor(HSSFColor)
authorPJ Fanning <fanningpj@apache.org>
Wed, 8 Mar 2023 11:04:59 +0000 (11:04 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 8 Mar 2023 11:04:59 +0000 (11:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908192 13f79535-47bb-0310-9956-ffa450edef68

poi-scratchpad/src/main/java/org/apache/poi/hssf/converter/AbstractExcelUtils.java

index 9d85fea9719187abb15f686f084157f1b37d549a..6ae0da8e018527a895d027dd06e24d1d08d6cd62 100644 (file)
@@ -119,7 +119,7 @@ class AbstractExcelUtils {
             }
             stringBuilder.append(hex);
         }
-        String result = color.getHexString();
+        String result = stringBuilder.toString();
 
         if (result.equals("#ffffff")) {
             return "white";