mirror of https://github.com/apache/poi.git
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:
parent
8679488458
commit
c7a5aed18e
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue