changeset 7902:a7b218447e12

Potential fix for flys/issue1717: Draw manuel points on W or Q axis depending on the calculation.
author Sascha L. Teichmann <teichmann@intevation.de>
date Mon, 26 May 2014 17:00:28 +0200
parents 64930ceebac0
children 7d4bbe5ca102
files artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.java	Mon May 26 12:40:19 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/HistoricalDischargeCurveGenerator.java	Mon May 26 17:00:28 2014 +0200
@@ -158,8 +158,14 @@
                 artifactFacet.getFacetDescription(), theme, visible);
         }
         else if (FacetTypes.IS.MANUALPOINTS(name)) {
+            HistoricalDischargeAccess.EvaluationMode mode =
+                new HistoricalDischargeAccess((D4EArtifact)getMaster()).getEvaluationMode();
+            int axis = mode == HistoricalDischargeAccess.EvaluationMode.W
+                ? YAXIS.Q.idx
+                : YAXIS.W.idx;
+
             doPoints(artifactFacet.getData(context), artifactFacet, theme,
-                visible, YAXIS.Q.idx);
+                visible, axis);
         }
         else {
             logger.warn("doOut(): unknown facet name: " + name);

http://dive4elements.wald.intevation.org