From 8b8165c0bd683435e29d59463a4e216e31ed2fa7 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:20:15 +0100 Subject: [PATCH] fixed files form Chart #7 --- projects/Chart/7/org/jfree/data/time/TimePeriodValues.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Chart/7/org/jfree/data/time/TimePeriodValues.java b/projects/Chart/7/org/jfree/data/time/TimePeriodValues.java index 0a3e7a1..589c7ca 100644 --- a/projects/Chart/7/org/jfree/data/time/TimePeriodValues.java +++ b/projects/Chart/7/org/jfree/data/time/TimePeriodValues.java @@ -297,9 +297,9 @@ private void updateBounds(TimePeriod period, int index) { } if (this.maxMiddleIndex >= 0) { - long s = getDataItem(this.minMiddleIndex).getPeriod().getStart() + long s = getDataItem(this.maxMiddleIndex).getPeriod().getStart() .getTime(); - long e = getDataItem(this.minMiddleIndex).getPeriod().getEnd() + long e = getDataItem(this.maxMiddleIndex).getPeriod().getEnd() .getTime(); long maxMiddle = s + (e - s) / 2; if (middle > maxMiddle) {