From: Avik Sengupta Date: Tue, 1 Jul 2003 14:52:15 +0000 (+0000) Subject: Bug id 20696 X-Git-Tag: REL_2_5_1~115 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5987e30b27c6b06b672f563e45e5b5a1d25c578;p=poi.git Bug id 20696 Workbook.getSheetIndex() needs to ignore case. Submitted by Eric Lander .. thanks! git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353183 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/model/Workbook.java b/src/java/org/apache/poi/hssf/model/Workbook.java index ac5843e211..b86f60887c 100644 --- a/src/java/org/apache/poi/hssf/model/Workbook.java +++ b/src/java/org/apache/poi/hssf/model/Workbook.java @@ -513,7 +513,7 @@ public class Workbook implements Model { for (int k = 0; k < boundsheets.size(); k++) { String sheet = getSheetName(k); - if (sheet.equals(name)) { + if (sheet.equalsIgnoreCase(name)) { retval = k; break; }