From ecf5aabbf7fbf57efb0549c3c06fba346654f415 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Sun, 27 Jul 2003 18:52:24 +0000 Subject: [PATCH] MERGE from REL_2_BRANCH: Bug id 20696 Workbook.getSheetIndex() needs to ignore case. Submitted by Eric Lander git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353259 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 1e5d08ce21..d1abd2cf3c 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; } -- 2.39.5