handle case where row nums are the same

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1891777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-07-24 14:19:07 +00:00
parent 8679488458
commit c7a5aed18e
1 changed files with 0 additions and 3 deletions

View File

@ -76,9 +76,6 @@ public final class FormulaShifter {
*/
private FormulaShifter(int externSheetIndex, String sheetName, int firstMovedIndex, int lastMovedIndex, int amountToMove,
ShiftMode mode, SpreadsheetVersion version) {
if (amountToMove == 0) {
throw new IllegalArgumentException("amountToMove must not be zero");
}
if (firstMovedIndex > lastMovedIndex) {
throw new IllegalArgumentException("firstMovedIndex, lastMovedIndex out of order");
}