aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew C. Oliver <acoliver@apache.org>2002-07-18 14:59:11 +0000
committerAndrew C. Oliver <acoliver@apache.org>2002-07-18 14:59:11 +0000
commiteadfd0e0179c9aa722c1270cf6d6e22f28c6ec6f (patch)
treeef9305cda0549ff253e3d5fb0ca7ee08a36937db
parentf1a8f34f27b53075f2b7777c3d0708a0fdcb74d6 (diff)
downloadpoi-eadfd0e0179c9aa722c1270cf6d6e22f28c6ec6f.tar.gz
poi-eadfd0e0179c9aa722c1270cf6d6e22f28c6ec6f.zip
applied shawn's patch and tested http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10935
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352781 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/poi/hssf/model/Sheet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/hssf/model/Sheet.java b/src/java/org/apache/poi/hssf/model/Sheet.java
index 65a7d7596a..77f7f05bc5 100644
--- a/src/java/org/apache/poi/hssf/model/Sheet.java
+++ b/src/java/org/apache/poi/hssf/model/Sheet.java
@@ -1710,7 +1710,7 @@ public class Sheet
{
ci = ( ColumnInfoRecord ) columnSizes.get(k);
if ((ci.getFirstColumn() >= column)
- && (ci.getLastColumn() <= column))
+ && (column <= ci.getLastColumn()))
{
break;
}
@@ -1749,7 +1749,7 @@ public class Sheet
{
ci = ( ColumnInfoRecord ) columnSizes.get(k);
if ((ci.getFirstColumn() >= column)
- && (ci.getLastColumn() <= column))
+ && (column <= ci.getLastColumn()))
{
break;
}