]> source.dussan.org Git - poi.git/commitdiff
Bug id 20696
authorAvik Sengupta <avik@apache.org>
Tue, 1 Jul 2003 14:52:15 +0000 (14:52 +0000)
committerAvik Sengupta <avik@apache.org>
Tue, 1 Jul 2003 14:52:15 +0000 (14:52 +0000)
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

index ac5843e211f30ce8e0abc7573aa187f8665abe12..b86f60887c0247aae049c6393440c262493c31d1 100644 (file)
@@ -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;
             }