aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2009-09-13 17:49:46 +0000
committerYegor Kozlov <yegor@apache.org>2009-09-13 17:49:46 +0000
commita90c8202db19b858a2c3b5c1d0fcc83428e99afa (patch)
treec9fa1560a90e83ed19cd545e3212d7c0c970d473 /src/ooxml/java/org
parent3ee045c2a27cd74411a324549c245ede9bc71576 (diff)
downloadpoi-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.java1
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) {