diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java @ 2311:b8df8d1476ba

Compute differences between discharge table values and reference discharge table values in historical discharge curve calculation. flys-artifacts/trunk@3991 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 09 Feb 2012 10:57:35 +0000
parents e7843533f086
children 200e70f31f6f
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java	Thu Feb 09 10:21:16 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WQTimerange.java	Thu Feb 09 10:57:35 2012 +0000
@@ -36,7 +36,7 @@
 
 
     public Timerange[] getTimeranges() {
-        return (Timerange[]) ts.toArray();
+        return (Timerange[]) ts.toArray(new Timerange[ts.size()]);
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org