From c472df8fd1daf3286eb780f1eb5a999b80b017c2 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Tue, 1 Jul 2003 14:52:15 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/model/Workbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/model/Workbook.java b/src/java/org/apache/poi/hssf/model/Workbook.java index ac5843e21..b86f60887 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; }