[PATCH] For whatever reason (if any) facet descriptions with trailing whitespace are stripped from the legend
Wald Commits
scm-commit at wald.intevation.org
Tue Oct 7 19:19:53 CEST 2014
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1412702390 -7200
# Node ID e52a7daabe0f3d2211abc694ab47db76b96f06a1
# Parent 1e1b08d033f485cdc15a368d4dc65c80caf1afdd
For whatever reason (if any) facet descriptions with trailing whitespace are stripped from the legend.
diff -r 1e1b08d033f4 -r e52a7daabe0f artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.java Tue Oct 07 19:04:06 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/GaugeDischargeState.java Tue Oct 07 19:19:50 2014 +0200
@@ -86,7 +86,6 @@
String name = Resources.getMsg(
meta,
"chart.computed.discharge.curve.gauge",
- "",
args);
return name;
@@ -162,9 +161,6 @@
facets.add(facet);
- //facets.add(new DataFacet(CSV, "CSV data"));
- //facets.add(new DataFacet(PDF, "PDF data"));
-
if (res.getReport().hasProblems()) {
facets.add(new ReportFacet());
}
diff -r 1e1b08d033f4 -r e52a7daabe0f artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java Tue Oct 07 19:04:06 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/DischargeProcessor.java Tue Oct 07 19:19:50 2014 +0200
@@ -71,7 +71,7 @@
doDischargeOut(
generator,
bundle,
- bundle.getFacetDescription(),
+ bundle.getFacetDescription().trim(),
theme,
visible);
}
@@ -136,7 +136,6 @@
log.debug("no gauge found");
return;
}
-
generator.addAxisSeries(series, axisName, visible);
}
diff -r 1e1b08d033f4 -r e52a7daabe0f artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java Tue Oct 07 19:04:06 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/HistoricalDischargeProcessor.java Tue Oct 07 19:19:50 2014 +0200
@@ -77,8 +77,10 @@
) {
CallContext context = generator.getCallContext();
WQKms data = (WQKms)bundle.getData(context);
- XYSeries series = new StyledXYSeries(bundle.getFacetDescription(),
- theme);
+ XYSeries series = new StyledXYSeries(
+ bundle.getFacetDescription().trim(),
+ theme
+ );
double[][] wqData = new double[2][data.size()];
for (int i = 0; i < data.size(); i++) {
wqData[0][i] = data.getQ(i);
More information about the Dive4Elements-commits
mailing list