]> source.dussan.org Git - poi.git/commitdiff
MERGE from REL_2_BRANCH: Bug id 20696
authorAvik Sengupta <avik@apache.org>
Sun, 27 Jul 2003 18:52:24 +0000 (18:52 +0000)
committerAvik Sengupta <avik@apache.org>
Sun, 27 Jul 2003 18:52:24 +0000 (18:52 +0000)
  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

index 1e5d08ce21dda13d947eb45139106ce907523dc3..d1abd2cf3c31ad37e68cf90787a990476e6c82f4 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;
             }