diff options
author | Yegor Kozlov <yegor@apache.org> | 2009-09-13 17:49:46 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2009-09-13 17:49:46 +0000 |
commit | a90c8202db19b858a2c3b5c1d0fcc83428e99afa (patch) | |
tree | c9fa1560a90e83ed19cd545e3212d7c0c970d473 /src/ooxml/java/org | |
parent | 3ee045c2a27cd74411a324549c245ede9bc71576 (diff) | |
download | poi-a90c8202db19b858a2c3b5c1d0fcc83428e99afa.tar.gz poi-a90c8202db19b858a2c3b5c1d0fcc83428e99afa.zip |
fixed XSSFSheet.setColumnWidth to produce XML compatible with Mac Excel 2008, see Bugzilla 47581
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@814358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 935774582c..4fb9185b90 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -1675,6 +1675,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet { if(width > 255*256) throw new IllegalArgumentException("The maximum column width for an individual cell is 255 characters."); columnHelper.setColWidth(columnIndex, (double)width/256); + columnHelper.setCustomWidth(columnIndex, true); } public void setDefaultColumnStyle(int column, CellStyle style) { |