diff options
author | Nick Burch <nick@apache.org> | 2014-07-31 16:06:43 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2014-07-31 16:06:43 +0000 |
commit | 17de55241feb86342885cf7c94b0f32bdc4439e7 (patch) | |
tree | 031ffb38de979c1e60790612d77ce911e69b102f /src/java/org/apache/poi | |
parent | 4eb322bae7e3fc8353f3a1f5290562ccf019a9e4 (diff) | |
download | poi-17de55241feb86342885cf7c94b0f32bdc4439e7.tar.gz poi-17de55241feb86342885cf7c94b0f32bdc4439e7.zip |
Fix bug #55050 - If the start+end row and cell are the same on an AreaPtg, avoid inverting the relative flag
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1614928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r-- | src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java b/src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java index 4df3314440..5b77b09fed 100644 --- a/src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java +++ b/src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java @@ -71,7 +71,7 @@ public abstract class AreaPtgBase extends OperandPtg implements AreaI { protected AreaPtgBase(int firstRow, int lastRow, int firstColumn, int lastColumn, boolean firstRowRelative, boolean lastRowRelative, boolean firstColRelative, boolean lastColRelative) { - if (lastRow > firstRow) { + if (lastRow >= firstRow) { setFirstRow(firstRow); setLastRow(lastRow); setFirstRowRelative(firstRowRelative); @@ -83,7 +83,7 @@ public abstract class AreaPtgBase extends OperandPtg implements AreaI { setLastRowRelative(firstRowRelative); } - if (lastColumn > firstColumn) { + if (lastColumn >= firstColumn) { setFirstColumn(firstColumn); setLastColumn(lastColumn); setFirstColRelative(firstColRelative); |