changeset 8165:cfb3a4d0c637

Added new diagramm generator for Q symmetry.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 29 Aug 2014 16:21:31 +0200
parents 951e114f3bef
children 72c0d4682cf6
files artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator2.java
diffstat 2 files changed, 17 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java	Fri Aug 29 16:21:31 2014 +0200
@@ -0,0 +1,15 @@
+/* Copyright (C) 2014 by Bundesanstalt für Gewässerkunde
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU AGPL (>=v3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out the
+ * documentation coming with Dive4Elements River for details.
+ */
+package org.dive4elements.river.exports;
+
+public class DischargeGenerator extends DiagramGenerator
+{
+    public DischargeGenerator() {
+    }
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator2.java	Fri Aug 29 15:44:08 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator2.java	Fri Aug 29 16:21:31 2014 +0200
@@ -63,8 +63,8 @@
          * actually does the output and accesses the facet data.
          */
         D4EArtifact artifact = (D4EArtifact)bundle.getArtifact();
-        if (context.getContextValue("bounds_defined") != null &&
-            (Boolean)context.getContextValue("bounds_defined")) {
+        Object ctxV = context.getContextValue("bounds_defined");
+        if (ctxV != null && (Boolean)ctxV) {
             super.doOut(bundle, theme, visible);
             return;
         }

http://dive4elements.wald.intevation.org