From eadfd0e0179c9aa722c1270cf6d6e22f28c6ec6f Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Thu, 18 Jul 2002 14:59:11 +0000 Subject: 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 --- src/java/org/apache/poi/hssf/model/Sheet.java | 4 ++-- 1 file 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; } -- cgit v1.2.3