Skip to content

Commit b6c330d

Browse files
committed
#332 use english locale for DecimalFormat on table creation
1 parent 804c946 commit b6c330d

File tree

1 file changed

+2
-1
lines changed
  • odfdom/src/main/java/org/odftoolkit/odfdom/doc/table

1 file changed

+2
-1
lines changed

odfdom/src/main/java/org/odftoolkit/odfdom/doc/table/OdfTable.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.odftoolkit.odfdom.doc.table;
2020

2121
import java.text.DecimalFormat;
22+
import java.text.DecimalFormatSymbols;
2223
import java.util.ArrayList;
2324
import java.util.IdentityHashMap;
2425
import java.util.List;
@@ -392,7 +393,7 @@ private static TableTableElement createTable(
392393
String columnStylename = columnStyle.getStyleNameAttribute();
393394
columnStyle.setProperty(
394395
StyleTableColumnPropertiesElement.ColumnWidth,
395-
new DecimalFormat("000.0000").format(DEFAULT_TABLE_WIDTH / numCols) + "in");
396+
new DecimalFormat("000.0000", DecimalFormatSymbols.getInstance(Locale.ENGLISH)).format(DEFAULT_TABLE_WIDTH / numCols) + "in");
396397
columnStyle.setProperty(
397398
StyleTableColumnPropertiesElement.RelColumnWidth,
398399
Math.round(DEFAULT_REL_TABLE_WIDTH / numCols) + "*");

0 commit comments

Comments
 (0)