mirror of
https://github.com/apache/poi.git
synced 2025-03-07 01:19:08 +00:00
forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902941 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c34bad8f4
commit
10da475b7a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user