github #81: sheet names are case insensitive

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-11-12 06:14:43 +00:00
parent 1bc1bdb58b
commit fbccf3066c

View File

@ -213,7 +213,7 @@ public final class FormulaShifter {
if(ptg instanceof Ref3DPxg) { if(ptg instanceof Ref3DPxg) {
Ref3DPxg rpxg = (Ref3DPxg)ptg; Ref3DPxg rpxg = (Ref3DPxg)ptg;
if (rpxg.getExternalWorkbookNumber() > 0 || if (rpxg.getExternalWorkbookNumber() > 0 ||
! _sheetName.equals(rpxg.getSheetName())) { ! _sheetName.equalsIgnoreCase(rpxg.getSheetName())) {
// only move 3D refs that refer to the sheet with cells being moved // only move 3D refs that refer to the sheet with cells being moved
return null; return null;
} }
@ -239,7 +239,7 @@ public final class FormulaShifter {
if(ptg instanceof Area3DPxg) { if(ptg instanceof Area3DPxg) {
Area3DPxg apxg = (Area3DPxg)ptg; Area3DPxg apxg = (Area3DPxg)ptg;
if (apxg.getExternalWorkbookNumber() > 0 || if (apxg.getExternalWorkbookNumber() > 0 ||
! _sheetName.equals(apxg.getSheetName())) { ! _sheetName.equalsIgnoreCase(apxg.getSheetName())) {
// only move 3D refs that refer to the sheet with cells being moved // only move 3D refs that refer to the sheet with cells being moved
return null; return null;
} }