aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-07-24 14:19:07 +0000
committerPJ Fanning <fanningpj@apache.org>2021-07-24 14:19:07 +0000
commitc7a5aed18e09e429d71c318a296ef26999490f76 (patch)
tree8e3d4112052977fe8dd243cbebbda78fcecf474f /poi
parent86794884586023d05dd94598e60917cb2ca9ff7c (diff)
downloadpoi-c7a5aed18e09e429d71c318a296ef26999490f76.tar.gz
poi-c7a5aed18e09e429d71c318a296ef26999490f76.zip
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
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/ss/formula/FormulaShifter.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/formula/FormulaShifter.java b/poi/src/main/java/org/apache/poi/ss/formula/FormulaShifter.java
index ed2589d754..782063a481 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/FormulaShifter.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/FormulaShifter.java
@@ -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");
}