[PATCH] Added new diagramm generator for Q symmetry
Wald Commits
scm-commit at wald.intevation.org
Fri Aug 29 16:21:37 CEST 2014
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1409322091 -7200
# Node ID cfb3a4d0c637282a526c69113c1bb9a3e52bbacf
# Parent 951e114f3bef534640a24ea7541f46608432bd84
Added new diagramm generator for Q symmetry.
diff -r 951e114f3bef -r cfb3a4d0c637 artifacts/src/main/java/org/dive4elements/river/exports/DischargeGenerator.java
--- /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 :
diff -r 951e114f3bef -r cfb3a4d0c637 artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator2.java
--- 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;
}
More information about the Dive4Elements-commits
mailing list