Bug #1503: Fix calculation of min and max in histogram charts

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-07-13 12:52:08 +02:00
parent e4e1479d5f
commit 22b4084045

View file

@ -329,9 +329,6 @@ public class DashboardModel implements IDashboardModel {
if (values.isEmpty()) {
minDouble = -halfSize;
maxDouble = halfSize;
} else if (values.size() == 1) {
minDouble = values.get(0) - halfSize;
maxDouble = values.get(0) + halfSize;
} else {
minDouble = Collections.min(values);
maxDouble = Collections.max(values);