Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Leicht2011-07-28 15:23:15 +0000
committerStephan Leicht2011-07-28 15:23:15 +0000
commita10717f7431f1c494949b516d9321b4d0bc09767 (patch)
treedc16c31a8756d6471237d34282f545eebea3957b
parentc87c973296b7c38af76e8f049cffa364beaffd48 (diff)
downloadorg.eclipse.scout.rt-a10717f7431f1c494949b516d9321b4d0bc09767.tar.gz
org.eclipse.scout.rt-a10717f7431f1c494949b516d9321b4d0bc09767.tar.xz
org.eclipse.scout.rt-a10717f7431f1c494949b516d9321b4d0bc09767.zip
bug 352955: AbstractPlannerField: inconsistent handling of boundary conditions
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352955
-rw-r--r--org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/activitymap/TimeScale.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/activitymap/TimeScale.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/activitymap/TimeScale.java
index 92119acbb2..f6cdb1d0f3 100644
--- a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/activitymap/TimeScale.java
+++ b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/activitymap/TimeScale.java
@@ -4,7 +4,7 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
@@ -25,7 +25,7 @@ import org.eclipse.scout.commons.CompositeObject;
*/
public class TimeScale {
private DateFormat m_dateFormat;
- private List<MajorTimeColumn> m_childrenUnsorted = new ArrayList<MajorTimeColumn>(0);
+ private final List<MajorTimeColumn> m_childrenUnsorted = new ArrayList<MajorTimeColumn>(0);
// cache for sorted objects, only access using the provided methods, never
// access this member directly
private MajorTimeColumn[] m_majorColumnsSorted;
@@ -123,7 +123,7 @@ public class TimeScale {
*/
public double[] getRangeOf(Date beginTime, Date endTime) {
if (getMinorTimeColumns().length <= 0) return null;
- if (endTime == null || endTime.compareTo(getBeginTime()) <= 0) return null;
+ if (endTime == null || endTime.compareTo(getBeginTime()) < 0) return null;
if (beginTime == null || beginTime.compareTo(getEndTime()) >= 0) return null;
//
MinorTimeColumn[] minCols = getMinorTimeColumns();
@@ -141,7 +141,7 @@ public class TimeScale {
}
}
if (a != null && b == null) {
- if (endTime.compareTo(minCols[i].getEndTime()) <= 0) {
+ if (endTime.compareTo(minCols[i].getEndTime()) < 0) {
b = i;
}
}

Back to the top