From 10da475b7a05f18291c674ab9cd86a62904845fb Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 22 Jul 2022 11:03:57 +0000 Subject: [PATCH] forbidden api git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902941 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java index 82444cc26d..ca53014864 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java @@ -20,6 +20,7 @@ import org.apache.poi.openxml4j.opc.ContentTypes; import org.apache.poi.sl.usermodel.ColorStyle; import org.apache.poi.sl.usermodel.PaintStyle; import org.apache.poi.sl.usermodel.TextParagraph.TextAlign; +import org.apache.poi.util.LocaleUtil; import org.apache.poi.xslf.XSLFTestDataSamples; import org.junit.jupiter.api.Test; @@ -43,7 +44,7 @@ public class TestXSLFDiagram { } private static String colorToHex(Color color) { - return String.format("#%02x%02x%02x", color.getRed(), color.getGreen(), color.getBlue()); + return String.format(LocaleUtil.getUserLocale(), "#%02x%02x%02x", color.getRed(), color.getGreen(), color.getBlue()); } private static Color hexToColor(String hex) {