From a4be4cecfc3923b5d2a82424ba5801e63047a27c Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 5 May 2010 16:30:43 +0000 Subject: [PATCH] Fix bug #49194 - Correct text size limit for OOXML .xlsx files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@941372 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/status.xml | 1 + src/java/org/apache/poi/ss/SpreadsheetVersion.java | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 78bda68a9..a4d4c462f 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,7 @@ + 49194 - Correct text size limit for OOXML .xlsx files 49254 - Fix CellUtils.setFont to use the correct type internally 49139 - Properly support 4k big block size in POIFS 48936 - Avoid writing malformed CDATA blocks in sharedStrings.xml diff --git a/src/java/org/apache/poi/ss/SpreadsheetVersion.java b/src/java/org/apache/poi/ss/SpreadsheetVersion.java index d4edaec53..8030e0228 100644 --- a/src/java/org/apache/poi/ss/SpreadsheetVersion.java +++ b/src/java/org/apache/poi/ss/SpreadsheetVersion.java @@ -36,7 +36,6 @@ public enum SpreadsheetVersion { *
  • The total number of available rows is 64k (2^16)
  • *
  • The maximum number of arguments to a function is 30
  • *
  • Number of conditional format conditions on a cell is 3
  • - *
  • Length of text cell contents is unlimited
  • *
  • Length of text cell contents is 32767
  • * */ @@ -51,10 +50,10 @@ public enum SpreadsheetVersion { *
  • The maximum number of arguments to a function is 255
  • *
  • Number of conditional format conditions on a cell is unlimited * (actually limited by available memory in Excel)
  • - *
  • Length of text cell contents is unlimited
  • + *
  • Length of text cell contents is 32767
  • *
      */ - EXCEL2007(0x100000, 0x4000, 255, Integer.MAX_VALUE, Integer.MAX_VALUE); + EXCEL2007(0x100000, 0x4000, 255, Integer.MAX_VALUE, 32767); private final int _maxRows; private final int _maxColumns;