Mercurial > dive4elements > river
changeset 2075:f42b0e624e97
Small bugfix: use correct keys for buffering min/max values in EnhancedLineAndShapeRenderer.
flys-artifacts/trunk@3586 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 04 Jan 2012 15:23:26 +0000 |
parents | a026d005accd |
children | 41037d51c8b6 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/jfree/EnhancedLineAndShapeRenderer.java |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Jan 04 14:43:48 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jan 04 15:23:26 2012 +0000 @@ -1,3 +1,8 @@ +2012-01-04 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/jfree/EnhancedLineAndShapeRenderer.java: + Use correct keys for buffering in getMinimum() and getMaximum(). + 2012-01-04 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/exports/StyledXYSeries.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/EnhancedLineAndShapeRenderer.java Wed Jan 04 14:43:48 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/EnhancedLineAndShapeRenderer.java Wed Jan 04 15:23:26 2012 +0000 @@ -179,7 +179,7 @@ public double getMinimum(XYDataset dataset, int series) { Integer key = Integer.valueOf(series); - Double old = seriesMinimum.get(Integer.valueOf(series)); + Double old = seriesMinimum.get(key); if (old != null) { return old.doubleValue(); @@ -210,7 +210,7 @@ public double getMaximum(XYDataset dataset, int series) { Integer key = Integer.valueOf(series); - Double old = seriesMaximum.get(Integer.valueOf(series)); + Double old = seriesMaximum.get(key); if (old != null) { return old.doubleValue();