[PATCH] Missed some places were axes were created
Wald Commits
scm-commit at wald.intevation.org
Wed Feb 14 18:15:37 CET 2018
# HG changeset patch
# User gernotbelger
# Date 1518628532 -3600
# Node ID a7f1d4c9add45cdb623ef6f85cd5a7fb0d395cc4
# Parent cc86b0f9b3c3e98abc5dc3894e60aba4cfcf8f4d
Missed some places were axes were created
diff -r cc86b0f9b3c3 -r a7f1d4c9add4 artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java Wed Feb 14 18:10:53 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java Wed Feb 14 18:15:32 2018 +0100
@@ -1520,6 +1520,10 @@
axis.setLabelFont(labelFont);
axis.setTickLabelFont(labelFont);
+ // REMARK: we overwrite the default values to 0.0, because in earlier version margins were never applied.
+ axis.setLowerMargin(0);
+ axis.setUpperMargin(0);
+
return axis;
}
diff -r cc86b0f9b3c3 -r a7f1d4c9add4 artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java Wed Feb 14 18:10:53 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java Wed Feb 14 18:15:32 2018 +0100
@@ -301,7 +301,8 @@
protected NumberAxis createXAxis(String label) {
- return new NumberAxis(label);
+ NumberAxis axis = new NumberAxis(label);
+ return axis;
}
More information about the Dive4Elements-commits
mailing list