[bug-63463] fix issue with shifting rows. Thanks to David Gauntt.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1860384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2019-05-30 07:56:33 +00:00
parent dcb6d534fd
commit 7ef085af37
1 changed files with 3 additions and 2 deletions

View File

@ -562,10 +562,11 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
int rownum = getRowNum() + n;
String msg = "Row[rownum=" + getRowNum() + "] contains cell(s) included in a multi-cell array formula. " +
"You cannot change part of an array.";
setRowNum(rownum);
for(Cell c : this){
((XSSFCell)c).updateCellReferencesForShifting(msg);
}
setRowNum(rownum);
}
}
/**