monor perf issue in XSSFCell

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-02-14 20:04:06 +00:00
parent 8d522d0eb6
commit 7dbfc41dfb
1 changed files with 3 additions and 2 deletions

View File

@ -117,8 +117,9 @@ public final class XSSFCell extends CellBase {
protected XSSFCell(XSSFRow row, CTCell cell) {
_cell = cell;
_row = row;
if (cell.getR() != null) {
_cellNum = new CellReference(cell.getR()).getCol();
String rval = cell.getR();
if (rval != null) {
_cellNum = new CellReference(rval).getCol();
} else {
int prevNum = row.getLastCellNum();
if(prevNum != -1){