From 17de55241feb86342885cf7c94b0f32bdc4439e7 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 31 Jul 2014 16:06:43 +0000 Subject: 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 --- src/java/org/apache/poi/ss/formula/ptg/AreaPtgBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/org/apache/poi') 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); -- cgit v1.2.3