Closed GoogleCodeExporter closed 9 years ago
I've narrowed it down to line 301 of XYSeries.java
// this would be simply: end = mXY.higherKey(end) but NavigableMap is
// available since API 9
// so we have to do this hack in order to support older versions
SortedMap<Double, Double> tailMap = mXY.tailMap(stop);
if (!tailMap.isEmpty()) {
Iterator<Double> tailIterator = tailMap.keySet().iterator();
Double next = tailIterator.next();
if (tailIterator.hasNext()) {
stop = tailIterator.next();
} else {
stop += next;
}
}
When it does 'stop += next', if stop is negative, it can make it smaller than
start.
I have no clue what any of this code does, but I'm hoping that it's possible to
change the 'else' condition to 'else if stop > 0'.
It works for my test case. A better solution would be to find out why it
sometimes goes in there, and sometimes it doesn't.
Original comment by ydin...@gmail.com
on 13 Jun 2013 at 11:24
Original comment by dandrome...@gmail.com
on 31 Oct 2013 at 8:16
Original issue reported on code.google.com by
ydin...@gmail.com
on 7 Jun 2013 at 11:30Attachments: