From: Josh Micich Date: Thu, 3 Apr 2008 21:17:26 +0000 (+0000) Subject: Follow up fix after r644473 (bug 44739) TestHSSFConditionalFormatting had a bug and... X-Git-Tag: REL_3_0_3_BETA1~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b938b6c97f47f085757b330d1bce90293c863afb;p=poi.git Follow up fix after r644473 (bug 44739) TestHSSFConditionalFormatting had a bug and wasn't yet included in the test suite hierarchy git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@644509 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/cf/CellRange.java b/src/java/org/apache/poi/hssf/record/cf/CellRange.java index f8839d99c1..f45b79b003 100644 --- a/src/java/org/apache/poi/hssf/record/cf/CellRange.java +++ b/src/java/org/apache/poi/hssf/record/cf/CellRange.java @@ -78,8 +78,8 @@ public final class CellRange return _firstColumn == 0 && _lastColumn == LAST_COLUMN_INDEX; } - public CellRange(Region r) { - this(r.getRowFrom(), r.getRowTo(), r.getColumnFrom(), r.getColumnTo()); + private static CellRange createFromRegion(Region r) { + return new CellRange(r.getRowFrom(), r.getRowTo(), r.getColumnFrom(), r.getColumnTo()); } private static boolean isValid(int firstRow, int lastRow, int firstColumn, int lastColumn) @@ -358,7 +358,7 @@ public final class CellRange CellRange[] result = new CellRange[regions.length]; for( int i=0; i