Mercurial > dive4elements > river
changeset 934:d0f3fea20f01
Fixed corner case.
flys-artifacts/trunk@2320 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 12 Jul 2011 08:05:54 +0000 |
parents | 34136924661b |
children | 353ddfa231a7 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jul 11 16:08:30 2011 +0000 +++ b/flys-artifacts/ChangeLog Tue Jul 12 08:05:54 2011 +0000 @@ -1,8 +1,14 @@ +2011-07-12 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/geom/Lines.java: + Fixed corner case. + 2011-07-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/geom/Lines.java: New. fillWater() generates a list of wet lines for a given profile and a given water level. + 2011-07-08 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java: The
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Mon Jul 11 16:08:30 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/geom/Lines.java Tue Jul 12 08:05:54 2011 +0000 @@ -54,7 +54,8 @@ // Only generate point if over water if (waterLevel > p.getY()) { result.add(new Line2D.Double( - waterLevel, p.getY(), waterLevel, p.getY())); + p.getX(), waterLevel, + p.getX(), waterLevel)); } return result; } @@ -168,7 +169,7 @@ startX = x; } } // switch mode - } + } // for all points p[i] and p[i-1] if (mode == Mode.WET) { result.add(new Line2D.Double(