[Dive4elements-commits] [PATCH 09 of 12] Correctly set the reference system after conversion

Wald Commits scm-commit at wald.intevation.org
Wed Jun 12 17:47:22 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371051935 -7200
# Node ID ebba1a795d76621671493faa16dc381156e9fe39
# Parent  aa4c13220fa09e7a67dbef7231a205eca419ea4f
Correctly set the reference system after conversion

diff -r aa4c13220fa0 -r ebba1a795d76 artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java	Wed Jun 12 16:59:46 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQ.java	Wed Jun 12 17:45:35 2013 +0200
@@ -121,6 +121,7 @@
         }
         // If we convert we work on a copy to avoid side effects.
         WQ ret = new WQ(wq.size(), wq.getName());
+        ret.setReferenceSystem(wq.CENTIMETER_AT_GAUGE);
 
         // When we convert and have a datum we have a calculated
         // result at a gauge so we must subtract the datum.


More information about the Dive4elements-commits mailing list