From: Nick Burch Date: Wed, 5 May 2010 16:30:43 +0000 (+0000) Subject: Fix bug #49194 - Correct text size limit for OOXML .xlsx files X-Git-Tag: REL_3_7_BETA1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=476a526e26676c82fbe6f2d77223f23648533542;p=poi.git 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 --- diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 78bda68a9b..a4d4c462f8 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 d4edaec53f..8030e02283 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;