poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1582892 - /poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java
Date Fri, 28 Mar 2014 21:54:30 GMT
Author: nick
Date: Fri Mar 28 21:54:30 2014
New Revision: 1582892

URL: http://svn.apache.org/r1582892
Log:
Patch from bug #56328 from David North - the maximum row number in a formula depends on HSSF
vs XSSF

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java?rev=1582892&r1=1582891&r2=1582892&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/FormulaParser.java Fri Mar 28 21:54:30 2014
@@ -701,7 +701,7 @@ public final class FormulaParser {
 			} catch (NumberFormatException e) {
 				return null;
 			}
-			if (i<1 || i>65536) {
+			if (i<1 || i>_ssVersion.getMaxRows()) {
 				return null;
 			}
 		} else {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message