Mercurial > dive4elements > river
changeset 3167:6f1a102ec14a
Do not add entries ending with " " to legend.
flys-artifacts/trunk@4780 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 25 Jun 2012 15:35:00 +0000 |
parents | 591be3486087 |
children | e10323bf3cbc |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jun 25 15:03:57 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Jun 25 15:35:00 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-25 Raimund Renkert <raimund.renkert@intevation.de> + + * src/main/java/de/intevation/flys/exports/ChartGenerator.java: + Do not add entries ending with " " to legend. + 2012-06-25 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Mon Jun 25 15:03:57 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ChartGenerator.java Mon Jun 25 15:35:00 2012 +0000 @@ -1196,9 +1196,13 @@ } LegendItem legendItem = renderer.getLegendItem(idx, s); + if (legendItem.getLabel().endsWith(" ")) { + legendItem = null; + } if (legendItem.getLabel().endsWith("interpol")) { legendItem = null; } + if (legendItem != null) { legendItem.setLabelFont(legendFont); lic.add(legendItem);