git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@513605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
89bfe86875
commit
d26d6811fd
@ -750,10 +750,13 @@ public class HSSFWorkbook
|
|||||||
NameRecord r = null;
|
NameRecord r = null;
|
||||||
while ((r = (NameRecord) workbook.findNextRecordBySid(NameRecord.sid, index)) != null)
|
while ((r = (NameRecord) workbook.findNextRecordBySid(NameRecord.sid, index)) != null)
|
||||||
{
|
{
|
||||||
int nameRecordSheetIndex = workbook.getSheetIndexFromExternSheetIndex(r.getEqualsToIndexToSheet() - 1);
|
int indexToSheet = r.getEqualsToIndexToSheet() -1;
|
||||||
if (isRowColHeaderRecord( r ) && nameRecordSheetIndex == sheetIndex)
|
if(indexToSheet > -1) { //ignore "GLOBAL" name records
|
||||||
{
|
int nameRecordSheetIndex = workbook.getSheetIndexFromExternSheetIndex(indexToSheet);
|
||||||
return index;
|
if (isRowColHeaderRecord( r ) && nameRecordSheetIndex == sheetIndex)
|
||||||
|
{
|
||||||
|
return index;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user