diff options
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) { |