optimized performance of HSSFCell#setHyperlink
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@983362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c9a7354786
commit
7ff307c17a
@ -1159,8 +1159,9 @@ public class HSSFCell implements Cell {
|
||||
break;
|
||||
}
|
||||
|
||||
int eofLoc = _sheet.getSheet().findFirstRecordLocBySid( EOFRecord.sid );
|
||||
_sheet.getSheet().getRecords().add( eofLoc, link.record );
|
||||
List<RecordBase> records = _sheet.getSheet().getRecords();
|
||||
int eofLoc = records.size() - 1;
|
||||
records.add( eofLoc, link.record );
|
||||
}
|
||||
/**
|
||||
* Only valid for formula cells
|
||||
|
Loading…
Reference in New Issue
Block a user