From b938b6c97f47f085757b330d1bce90293c863afb Mon Sep 17 00:00:00 2001 From: Josh Micich Date: Thu, 3 Apr 2008 21:17:26 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/record/cf/CellRange.java | 6 +++--- .../org/apache/poi/hssf/usermodel/AllUserModelTests.java | 1 + ...alFormatting.java => TestHSSFConditionalFormatting.java} | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) rename src/testcases/org/apache/poi/hssf/usermodel/{TestHSSFConfditionalFormatting.java => TestHSSFConditionalFormatting.java} (95%) 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